Sha256: 95d73a2deb3225f8b1c633ecb3665c84c0a11ef12fe8f83ffb80a4088f4c65fa
Contents?: true
Size: 348 Bytes
Versions: 18
Compression:
Stored size: 348 Bytes
Contents
RSpec::Matchers.define(:be_hash_eql) do |othr| diffable match do |obj| if obj.respond_to?(:hash_eql?) obj.hash_eql?(othr) else # same = (obj.length == othr.length) same = true ( othr.each_pair{|k,v| same &&= (v == obj[k]) } && obj .each_pair{|k,v| same &&= (v == othr[k]) }) same end end end
Version data entries
18 entries across 18 versions & 1 rubygems