Sha256: 7219beee1cf07424fa7f87b79905bd8c6833f781a16ee9a758568571d17dedd2
Contents?: true
Size: 544 Bytes
Versions: 39
Compression:
Stored size: 544 Bytes
Contents
require File.expand_path("../../../base", __FILE__) require 'vagrant/util/deep_merge' describe Vagrant::Util::DeepMerge do it "should deep merge hashes" do original = { "foo" => { "bar" => "baz", }, "bar" => "blah", } other = { "foo" => { "bar" => "new", }, } result = described_class.deep_merge(original, other) expect(result).to_not equal(original) expect(result).to eq({ "foo" => { "bar" => "new", }, "bar" => "blah", }) end end
Version data entries
39 entries across 32 versions & 8 rubygems