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

==(actual) click to toggle source
Calls superclass method WebMock::Matchers::HashArgumentMatcher#==
# File lib/webmock/matchers/hash_excluding_matcher.rb, line 6
def ==(actual)
  super { |key, value| !actual.key?(key) || value != actual[key] }
end
inspect() click to toggle source
# File lib/webmock/matchers/hash_excluding_matcher.rb, line 10
def inspect
  "hash_excluding(#{@expected.inspect})"
end