summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Tomulik <ptomulik@meil.pw.edu.pl>2013-08-14 02:23:36 +0200
committerPaweł Tomulik <ptomulik@meil.pw.edu.pl>2013-08-14 02:23:36 +0200
commitbb9f7d1726c4e33d41b992a981f1932fdab644a2 (patch)
treeb17446e03d46a976ba6fdd6916f3e42ef84a3107
parent0a02295c42a8cc22db86672bf69e6f0dd7046a5c (diff)
small fix to delete_values_spec.rb and README.markdown
-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