Merge pull request #183 from lmello/fix_bug_20681_delete_at
delete_at added spec to check against bug #20681
This commit is contained in:
commit
c2f584d2c2
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue