Skip to content

Commit c2f584d

Browse files
committed
Merge pull request #183 from lmello/fix_bug_20681_delete_at
delete_at added spec to check against bug #20681
2 parents 1011670 + b43c044 commit c2f584d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

spec/unit/puppet/parser/functions/delete_at_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,10 @@
1616
result = scope.function_delete_at([['a','b','c'],1])
1717
result.should(eq(['a','c']))
1818
end
19+
20+
it "should not change origin array passed as argument" do
21+
origin_array = ['a','b','c','d']
22+
result = scope.function_delete_at([origin_array, 1])
23+
origin_array.should(eq(['a','b','c','d']))
24+
end
1925
end

0 commit comments

Comments
 (0)