Skip to content

Commit 6dd6d06

Browse files
committed
Merge pull request #172 from ptomulik/fix/delete_xxx_spec
small fix to delete_values_spec.rb and README.markdown
2 parents 2a78cbf + bb9f7d1 commit 6dd6d06

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.markdown

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,8 @@ Deletes all instances of a given value from a hash.
215215
Would return: {'a'=>'A','c'=>'C','B'=>'D'}
216216

217217

218+
- *Type*: rvalue
219+
218220
delete_undef_values
219221
-------------------
220222
Deletes all instances of the undef value from an array or hash.

spec/unit/puppet/parser/functions/delete_values_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
end
1414

1515
it "should raise a ParseError if there are greater than 2 arguments" do
16-
lambda { scope.function_delete([[], 'foo', 'bar']) }.should( raise_error(Puppet::ParseError))
16+
lambda { scope.function_delete_values([[], 'foo', 'bar']) }.should( raise_error(Puppet::ParseError))
1717
end
1818

1919
it "should raise a TypeError if the argument is not a hash" do

0 commit comments

Comments
 (0)