Sha256: 74488f413aa11f02809844b0f905c870364f0dc18ab223fd1679e7429cca008d

Contents?: true

Size: 358 Bytes

Versions: 4

Compression:

Stored size: 358 Bytes

Contents

require "spec_helper"
require "cascade/helpers/hash"

describe Hash do
  describe "#reverse_merge" do
    using HashRefinements

    let(:another_hash) { { a: 1, b: 2 } }
    let(:example_hash) { { a: 4, c: 3 } }

    it "merge self into anothe hash" do
      assert_equal example_hash.reverse_merge(another_hash),
        a: 4, b: 2, c: 3
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cascade-rb-0.2.3 spec/lib/helpers/hash_spec.rb
cascade-rb-0.2.2 spec/lib/helpers/hash_spec.rb
cascade-rb-0.2.1 spec/lib/helpers/hash_spec.rb
cascade-rb-0.2.0 spec/lib/helpers/hash_spec.rb