diff options
author | Hunter Haugen <hunter@puppetlabs.com> | 2014-03-18 16:16:00 -0700 |
---|---|---|
committer | Hunter Haugen <hunter@puppetlabs.com> | 2014-03-18 16:16:00 -0700 |
commit | 904f1a003e790ba2afaf3452ecda9805e87d80d0 (patch) | |
tree | 93407d68868c37af5d597d33134ba5a16e919a21 /spec/unit/puppet/parser/functions/merge_spec.rb | |
parent | db00ce660520abfdc110d1ed0dd10bfbc708e256 (diff) | |
parent | fec943f441f0c6ab8d6b685091d3418ec0e265b4 (diff) | |
download | puppet-stdlib-904f1a003e790ba2afaf3452ecda9805e87d80d0.tar.gz puppet-stdlib-904f1a003e790ba2afaf3452ecda9805e87d80d0.tar.bz2 |
Merge branch '3.2.x' into 3.x
Diffstat (limited to 'spec/unit/puppet/parser/functions/merge_spec.rb')
-rw-r--r-- | spec/unit/puppet/parser/functions/merge_spec.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/unit/puppet/parser/functions/merge_spec.rb b/spec/unit/puppet/parser/functions/merge_spec.rb index db7d837..79079b6 100644 --- a/spec/unit/puppet/parser/functions/merge_spec.rb +++ b/spec/unit/puppet/parser/functions/merge_spec.rb @@ -25,7 +25,12 @@ describe Puppet::Parser::Functions.function(:merge) do describe 'when calling merge on the scope instance' do it 'should require all parameters are hashes' do - expect { new_hash = scope.function_merge([{}, '2'])}.should raise_error(Puppet::ParseError, /unexpected argument type String/) + expect { new_hash = scope.function_merge([{}, '2'])}.to raise_error(Puppet::ParseError, /unexpected argument type String/) + expect { new_hash = scope.function_merge([{}, 2])}.to raise_error(Puppet::ParseError, /unexpected argument type Fixnum/) + end + + it 'should accept empty strings as puppet undef' do + expect { new_hash = scope.function_merge([{}, ''])}.to raise_error end it 'should be able to merge two hashes' do |