Sha256: 49f7d3e8fd738079276ffac7c2319d74e990f9d9efdcb190f255e6c210eea5ce
Contents?: true
Size: 257 Bytes
Versions: 5
Compression:
Stored size: 257 Bytes
Contents
covers 'facets/hash/replace_each' test_case Hash do method :replace_each do test do a = { :a => 1, :b => 2, :c => 3 } x = { :a => 2, :b => 3, :c => 4 } a.replace_each{ |k,v| { k => v+1 } } a.assert == x end end end
Version data entries
5 entries across 5 versions & 2 rubygems