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
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
Calls superclass method
WebMock::Matchers::HashArgumentMatcher#==
Source
# File lib/webmock/matchers/hash_including_matcher.rb, line 14 def inspect "hash_including(#{@expected.inspect})" end