Sha256: 9fc3215659050e2aae6a59d9696a8a5dc16c2fc1bfeb41246d75fc3c9d61e284
Contents?: true
Size: 328 Bytes
Versions: 3
Compression:
Stored size: 328 Bytes
Contents
covers 'facets/hash/except' test_case Hash do method :except do test do h = {:a=>1, :b=>2, :c=>3} h.except(:a).assert == {:b=>2,:c=>3} end end method :except! do test do h = {:a=>1, :b=>2, :c=>3} h.except!(:a).assert == {:a=>1} h.assert == {:b=>2,:c=>3} end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
facets-3.0.0 | test/core/hash/test_expect.rb |
facets-2.9.3 | test/core/hash/test_expect.rb |
facets-2.9.2 | test/core/hash/test_expect.rb |