Sha256: c38079640bcc166b2cc439a99e05747c15080c8bc0c0a6d7dd2ca800fd86c7c4
Contents?: true
Size: 347 Bytes
Versions: 8
Compression:
Stored size: 347 Bytes
Contents
require 'pact_broker/hash_refinements' module PactBroker describe HashRefinements do using HashRefinements let(:a) { { a: 1, b: { c: 3 }, d: 5, e: nil } } let(:b) { { a: 2, b: { c: 4 } } } let(:expected) { { a: 2, b: { c: 4 }, d: 5, e: nil } } it "merges" do expect(a.deep_merge(b)).to eq expected end end end
Version data entries
8 entries across 8 versions & 1 rubygems