diff options
author | Adrien Thebo <git@somethingsinistral.net> | 2013-08-28 15:39:32 -0700 |
---|---|---|
committer | Adrien Thebo <git@somethingsinistral.net> | 2013-08-28 15:39:32 -0700 |
commit | 6dd6d060df57362733ed8210bbf56f38372d1f5e (patch) | |
tree | 769b70d41442b246822832fe6d49dbb9120a414a | |
parent | 2a78cbfaad2acc61d6d8bab715db00c9890adbd7 (diff) | |
parent | bb9f7d1726c4e33d41b992a981f1932fdab644a2 (diff) |
Merge pull request #172 from ptomulik/fix/delete_xxx_spec
small fix to delete_values_spec.rb and README.markdown
-rw-r--r-- | README.markdown | 2 | ||||
-rw-r--r-- | spec/unit/puppet/parser/functions/delete_values_spec.rb | 2 |
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 |