class Pact::RSpec::Matchers::MatchHeader

Public Class Methods

new(header_name, expected) click to toggle source
# File lib/pact/provider/rspec/matchers.rb, line 60
def initialize header_name, expected
  @header_name = header_name
  @expected = expected
end

Public Instance Methods

failure_message() click to toggle source
# File lib/pact/provider/rspec/matchers.rb, line 70
def failure_message
  match_header_failure_message @header_name, @expected, @actual
end
matches?(actual) click to toggle source
# File lib/pact/provider/rspec/matchers.rb, line 65
def matches? actual
  @actual = actual
  diff(@expected, @actual).empty?
end