diff options
author | Adrien Thebo <git@somethingsinistral.net> | 2013-09-17 11:35:57 -0700 |
---|---|---|
committer | Adrien Thebo <git@somethingsinistral.net> | 2013-09-17 11:35:57 -0700 |
commit | 1011670bade47441346e518506673016b6097bcd (patch) | |
tree | 533c5dd8d966359c155ebac7ac34f99554e67cf1 /spec/unit/puppet/parser | |
parent | f7f70fe9ee00c5d5aa27d8060b200bf91ddd2413 (diff) | |
parent | 51d96088c1d6bde8dae511d6a93bc6775e716f60 (diff) |
Merge pull request #182 from lmello/fix_bug_20681_delete_values
delete_values() fix bug #20681.
Diffstat (limited to 'spec/unit/puppet/parser')
-rw-r--r-- | spec/unit/puppet/parser/functions/delete_values_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/unit/puppet/parser/functions/delete_values_spec.rb b/spec/unit/puppet/parser/functions/delete_values_spec.rb index c62e55f..180cc30 100644 --- a/spec/unit/puppet/parser/functions/delete_values_spec.rb +++ b/spec/unit/puppet/parser/functions/delete_values_spec.rb @@ -27,4 +27,10 @@ describe "the delete_values function" do result.should(eq({ 'a'=>'A', 'B'=>'C' })) end + it "should not change origin hash passed as argument" do + origin_hash = { 'a' => 1, 'b' => 2, 'c' => 3 } + result = scope.function_delete_values([origin_hash, 2]) + origin_hash.should(eq({ 'a' => 1, 'b' => 2, 'c' => 3 })) + end + end |