From: Paweł Tomulik Date: Wed, 14 Aug 2013 00:23:36 +0000 (+0200) Subject: small fix to delete_values_spec.rb and README.markdown X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=bb9f7d1726c4e33d41b992a981f1932fdab644a2;p=puppet-stdlib.git small fix to delete_values_spec.rb and README.markdown --- 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