Module: Pact::RSpec::Matchers::RSpec2Delegator

Included in:
MatchHeader, MatchTerm
Defined in:
lib/pact/provider/rspec/matchers.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args, &block) ⇒ Object

For backwards compatibility with rspec-2



12
13
14
15
16
17
18
# File 'lib/pact/provider/rspec/matchers.rb', line 12

def method_missing(method, *args, &block)
  if method_name == :failure_message_for_should
    failure_message method, *args, &block
  else
    super
  end
end