diff --git a/README.markdown b/README.markdown index 1e51e1deb..a176d889f 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 e15c36682..c62e55f39 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 @@ 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