We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f496005 commit b975bd6Copy full SHA for b975bd6
spec/unit/puppet/parser/functions/merge_spec.rb
@@ -26,6 +26,11 @@
26
describe 'when calling merge on the scope instance' do
27
it 'should require all parameters are hashes' do
28
expect { new_hash = scope.function_merge([{}, '2'])}.to raise_error(Puppet::ParseError, /unexpected argument type String/)
29
+ expect { new_hash = scope.function_merge([{}, 2])}.to raise_error(Puppet::ParseError, /unexpected argument type Fixnum/)
30
+ end
31
+
32
+ it 'should accept empty strings as puppet undef' do
33
+ expect { new_hash = scope.function_merge([{}, ''])}.not_to raise_error(Puppet::ParseError, /unexpected argument type String/)
34
end
35
36
it 'should be able to merge two hashes' do
0 commit comments