class Pact::RSpec::Matchers::MatchHeader
Public Class Methods
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
Source
# File lib/pact/provider/rspec/matchers.rb, line 70 def failure_message match_header_failure_message @header_name, @expected, @actual end
Source
# File lib/pact/provider/rspec/matchers.rb, line 65 def matches? actual @actual = actual diff(@expected, @actual).empty? end