class WebMock::Matchers::HashExcludingMatcher
this is a based on RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher github.com/rspec/rspec-mocks/blob/master/lib/rspec/mocks/argument_matchers.rb
Public Instance Methods
Source
# File lib/webmock/matchers/hash_excluding_matcher.rb, line 8 def ==(actual) super { |key, value| !actual.key?(key) || value != actual[key] } end
Calls superclass method
WebMock::Matchers::HashArgumentMatcher#==
Source
# File lib/webmock/matchers/hash_excluding_matcher.rb, line 12 def inspect "hash_excluding(#{@expected.inspect})" end