]> gitweb.fluxo.info Git - puppet-stdlib.git/commitdiff
Merge branch '2.1.x' into 2.2.x
authorJeff McCune <jeff@puppetlabs.com>
Mon, 20 Aug 2012 21:03:48 +0000 (14:03 -0700)
committerJeff McCune <jeff@puppetlabs.com>
Mon, 20 Aug 2012 21:03:48 +0000 (14:03 -0700)
* 2.1.x:
  (Maint) Fix mis-use of rvalue functions as statements
  Add .rspec file to repo root

Conflicts:
spec/unit/puppet/parser/functions/getvar_spec.rb
spec/unit/puppet/parser/functions/has_key_spec.rb
spec/unit/puppet/parser/functions/merge_spec.rb

1  2 
spec/unit/puppet/parser/functions/merge_spec.rb

index 9218b9dca5b2f8b0749cc6aa554a51cde95f573a,a91dca7698b4c2aabe8665231383ccd770151d4d..db7d837befc3db4b2585e7f7189cf41429f96ee0
@@@ -26,9 -33,8 +26,8 @@@ describe Puppet::Parser::Functions.func
    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/)
--
      end
 +
      it 'should be able to merge two hashes' do
        new_hash = scope.function_merge([{'one' => '1', 'two' => '1'}, {'two' => '2', 'three' => '2'}])
        new_hash['one'].should   == '1'