Sha256: e20ad08886a32db8cc52aeeba470bc2695fc50a43cdd1d6cb91e7c8385dfe3ad
Contents?: true
Size: 485 Bytes
Versions: 16
Compression:
Stored size: 485 Bytes
Contents
# frozen_string_literal: true 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
16 entries across 16 versions & 5 rubygems