Sha256: ff07bbfc67accac6e3dbaba9db8b1678ce1b2c99f7d856e29cc02f9855b937a3
Contents?: true
Size: 315 Bytes
Versions: 5
Compression:
Stored size: 315 Bytes
Contents
require "spec_helper" require "cascade/helpers/hash" describe Hash do describe "#reverse_merge" do let(:another_hash) { { a: 1, b: 2 } } let(:hash) { { a: 4, c: 3 } } it "merge self into anothe hash" do assert_equal hash.reverse_merge(another_hash), a: 4, b: 2, c: 3 end end end
Version data entries
5 entries across 5 versions & 1 rubygems