1 require 'spec_helper_acceptance'
3 describe 'deep_merge function' do
6 $hash1 = {'one' => 1, 'two' => 2, 'three' => { 'four' => 4 } }
7 $hash2 = {'two' => 'dos', 'three' => { 'five' => 5 } }
8 $merged_hash = deep_merge($hash1, $hash2)
10 if $merged_hash != { 'one' => 1, 'two' => 'dos', 'three' => { 'four' => 4, 'five' => 5 } } {
11 fail("Hash was incorrectly merged.")
14 it 'deeps merge two hashes' do
15 apply_manifest(pp, :catch_failures => true)