summaryrefslogtreecommitdiff
path: root/spec/unit/parser/functions/delete_at_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/parser/functions/delete_at_spec.rb')
-rwxr-xr-xspec/unit/parser/functions/delete_at_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/unit/parser/functions/delete_at_spec.rb b/spec/unit/parser/functions/delete_at_spec.rb
index a0b5b06..27db0c8 100755
--- a/spec/unit/parser/functions/delete_at_spec.rb
+++ b/spec/unit/parser/functions/delete_at_spec.rb
@@ -18,4 +18,9 @@ describe "the delete_at function" do
lambda { @scope.function_delete_at([]) }.should( raise_error(Puppet::ParseError))
end
+ it "should delete an item at specified location from an array" do
+ result = @scope.function_delete_at([['a','b','c'],1])
+ result.should(eq(['a','c']))
+ end
+
end