summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.markdown2
-rw-r--r--spec/unit/puppet/parser/functions/delete_values_spec.rb2
2 files changed, 3 insertions, 1 deletions
diff --git a/README.markdown b/README.markdown
index 1e51e1d..a176d88 100644
--- a/README.markdown
+++ b/README.markdown
@@ -215,6 +215,8 @@ Deletes all instances of a given value from a hash.
Would return: {'a'=>'A','c'=>'C','B'=>'D'}
+- *Type*: rvalue
+
delete_undef_values
-------------------
Deletes all instances of the undef value from an array or hash.
diff --git a/spec/unit/puppet/parser/functions/delete_values_spec.rb b/spec/unit/puppet/parser/functions/delete_values_spec.rb
index e15c366..c62e55f 100644
--- a/spec/unit/puppet/parser/functions/delete_values_spec.rb
+++ b/spec/unit/puppet/parser/functions/delete_values_spec.rb
@@ -13,7 +13,7 @@ describe "the delete_values function" do
end
it "should raise a ParseError if there are greater than 2 arguments" do
- lambda { scope.function_delete([[], 'foo', 'bar']) }.should( raise_error(Puppet::ParseError))
+ lambda { scope.function_delete_values([[], 'foo', 'bar']) }.should( raise_error(Puppet::ParseError))
end
it "should raise a TypeError if the argument is not a hash" do