class WebMock::Matchers::HashIncludingMatcher

this is a based on RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher github.com/rspec/rspec-mocks/blob/master/lib/rspec/mocks/argument_matchers.rb

Public Instance Methods

==(actual) click to toggle source
# File lib/webmock/matchers/hash_including_matcher.rb, line 8
def ==(actual)
  super { |key, value| actual.key?(key) && value === actual[key] }
rescue NoMethodError
  false
end
inspect() click to toggle source
# File lib/webmock/matchers/hash_including_matcher.rb, line 14
def inspect
  "hash_including(#{@expected.inspect})"
end