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

Version Path
cascade-rb-0.1.5 spec/lib/helpers/hash.rb
cascade-rb-0.1.4 spec/lib/helpers/hash.rb
cascade-rb-0.1.2 spec/lib/helpers/hash.rb
cascade-rb-0.1.1 spec/lib/helpers/hash.rb
cascade-rb-0.1.0 spec/lib/helpers/hash.rb