Suggest different variables to use if we want to tunnel both v4 and v6
[mirror/dsa-puppet.git] / 3rdparty / modules / stdlib / spec / acceptance / deep_merge_spec.rb
1 require 'spec_helper_acceptance'
2
3 describe 'deep_merge function' do
4   describe 'success' do
5     pp = <<-DOC
6       $hash1 = {'one' => 1, 'two' => 2, 'three' => { 'four' => 4 } }
7       $hash2 = {'two' => 'dos', 'three' => { 'five' => 5 } }
8       $merged_hash = deep_merge($hash1, $hash2)
9
10       if $merged_hash != { 'one' => 1, 'two' => 'dos', 'three' => { 'four' => 4, 'five' => 5 } } {
11         fail("Hash was incorrectly merged.")
12       }
13     DOC
14     it 'deeps merge two hashes' do
15       apply_manifest(pp, :catch_failures => true)
16     end
17   end
18 end