Sha256: a0ae1f2cd84a1f1d224672ba4f824a2df1f61f1ea0d0e18553f1321c6d0014b9
Contents?: true
Size: 454 Bytes
Versions: 69
Compression:
Stored size: 454 Bytes
Contents
module WebMock module Matchers # this is a based on RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher # https://github.com/rspec/rspec-mocks/blob/master/lib/rspec/mocks/argument_matchers.rb class HashExcludingMatcher < HashArgumentMatcher def ==(actual) super { |key, value| !actual.key?(key) || value != actual[key] } end def inspect "hash_excluding(#{@expected.inspect})" end end end end
Version data entries
69 entries across 69 versions & 5 rubygems