diff options
author | Adrien Thebo <git@somethingsinistral.net> | 2013-09-17 11:39:29 -0700 |
---|---|---|
committer | Adrien Thebo <git@somethingsinistral.net> | 2013-09-17 11:39:29 -0700 |
commit | c2f584d2c2bb7f37a5dc83a9ef36a4a7db1170a6 (patch) | |
tree | a61acdd3029fae8c6a4a6109df237c08ece2d104 /spec/unit/puppet/parser/functions/delete_at_spec.rb | |
parent | 1011670bade47441346e518506673016b6097bcd (diff) | |
parent | b43c044581aa7cc7e38c3b010c0218df583ef51f (diff) | |
download | puppet-stdlib-c2f584d2c2bb7f37a5dc83a9ef36a4a7db1170a6.tar.gz puppet-stdlib-c2f584d2c2bb7f37a5dc83a9ef36a4a7db1170a6.tar.bz2 |
Merge pull request #183 from lmello/fix_bug_20681_delete_at
delete_at added spec to check against bug #20681
Diffstat (limited to 'spec/unit/puppet/parser/functions/delete_at_spec.rb')
-rwxr-xr-x | spec/unit/puppet/parser/functions/delete_at_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/unit/puppet/parser/functions/delete_at_spec.rb b/spec/unit/puppet/parser/functions/delete_at_spec.rb index d8d9618..cfc0a29 100755 --- a/spec/unit/puppet/parser/functions/delete_at_spec.rb +++ b/spec/unit/puppet/parser/functions/delete_at_spec.rb @@ -16,4 +16,10 @@ describe "the delete_at function" do result = scope.function_delete_at([['a','b','c'],1]) result.should(eq(['a','c'])) end + + it "should not change origin array passed as argument" do + origin_array = ['a','b','c','d'] + result = scope.function_delete_at([origin_array, 1]) + origin_array.should(eq(['a','b','c','d'])) + end end |