module RSpec::Support::FuzzyMatcher

def self.hashes_match?(expected_hash, actual_hash)

Other tags:
    Private: -
def self.hashes_match?(expected_hash, actual_hash)
  return false if expected_hash.size != actual_hash.size
  expected_hash.all? do |expected_key, expected_value|
    actual_value = actual_hash.fetch(expected_key) { return false }
    values_match?(expected_value, actual_value)
  end
end