Module: Pact::RSpec::Matchers

Defined in:
lib/pact/provider/rspec/matchers.rb

Defined Under Namespace

Modules: RSpec2Delegator Classes: MatchHeader, MatchTerm

Instance Method Summary collapse

Instance Method Details

#match_header(header_name, expected) ⇒ Object



75
76
77
# File 'lib/pact/provider/rspec/matchers.rb', line 75

def match_header header_name, expected
  MatchHeader.new(header_name, expected)
end

#match_term(expected, options, example) ⇒ Object



51
52
53
# File 'lib/pact/provider/rspec/matchers.rb', line 51

def match_term expected, options, example
  MatchTerm.new(expected, options.fetch(:with), options.fetch(:diff_formatter), example)
end