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:
Adrien Thebo 2013-09-17 11:39:29 -07:00
commit c2f584d2c2

View file

@ -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