Sha256: 4291df4c3e139c218d53393b7dd933beed377a014ebec8d1c73f593524c867be
Contents?: true
Size: 665 Bytes
Versions: 5
Compression:
Stored size: 665 Bytes
Contents
require 'spec_helper' RSpec.describe Lev::Utilities do it "should merge properly" do default_options = { translations: { outputs: { scope: :blah } } } options = { translations: { inputs: { type: :verbatim }, outputs: { map: {foo: :bar} } } } expected = { translations: { outputs: { scope: :blah, map: {foo: :bar} }, inputs: { type: :verbatim } } } merged = Lev::Utilities.deep_merge(default_options, options) expect(merged).to eq expected end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
lev-12.1.0 | spec/deep_merge_spec.rb |
lev-12.0.0 | spec/deep_merge_spec.rb |
lev-11.0.0 | spec/deep_merge_spec.rb |
lev-10.1.0 | spec/deep_merge_spec.rb |
lev-10.0.0 | spec/deep_merge_spec.rb |