small fix to delete_values_spec.rb and README.markdown
This commit is contained in:
parent
0a02295c42
commit
bb9f7d1726
2 changed files with 3 additions and 1 deletions
|
@ -215,6 +215,8 @@ Deletes all instances of a given value from a hash.
|
||||||
Would return: {'a'=>'A','c'=>'C','B'=>'D'}
|
Would return: {'a'=>'A','c'=>'C','B'=>'D'}
|
||||||
|
|
||||||
|
|
||||||
|
- *Type*: rvalue
|
||||||
|
|
||||||
delete_undef_values
|
delete_undef_values
|
||||||
-------------------
|
-------------------
|
||||||
Deletes all instances of the undef value from an array or hash.
|
Deletes all instances of the undef value from an array or hash.
|
||||||
|
|
|
@ -13,7 +13,7 @@ describe "the delete_values function" do
|
||||||
end
|
end
|
||||||
|
|
||||||
it "should raise a ParseError if there are greater than 2 arguments" do
|
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
|
end
|
||||||
|
|
||||||
it "should raise a TypeError if the argument is not a hash" do
|
it "should raise a TypeError if the argument is not a hash" do
|
||||||
|
|
Loading…
Reference in a new issue