[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. 0.25.5-639-g8f94f35

Markus Roberts Markus at reality.com
Wed Jul 14 10:36:17 UTC 2010


The following commit has been merged in the upstream branch:
commit e318db6ba901d74926dc58183d59688d9ac74c14
Author: Jesse Wolfe <jes5199 at gmail.com>
Date:   Fri Jul 2 12:16:31 2010 -0700

    [#4059] fix the specs to correctly mock the Puppet::Resource.new call signature

diff --git a/spec/unit/application/resource_spec.rb b/spec/unit/application/resource_spec.rb
index 3487b2c..9390429 100755
--- a/spec/unit/application/resource_spec.rb
+++ b/spec/unit/application/resource_spec.rb
@@ -187,7 +187,7 @@ describe Puppet::Application::Resource do
                 res.expects(:save).with('https://host:8139/production/resources/type/name').returns(res)
                 res.expects(:collect)
                 res.expects(:to_manifest)
-                Puppet::Resource.expects(:new).with('type', 'name', {'param' => 'temp'}).returns(res)
+                Puppet::Resource.expects(:new).with('type', 'name', :parameters => {'param' => 'temp'}).returns(res)
 
                 @resource.main
             end
@@ -223,7 +223,7 @@ describe Puppet::Application::Resource do
                 res.expects(:save).with('type/name').returns(res)
                 res.expects(:collect)
                 res.expects(:to_manifest)
-                Puppet::Resource.expects(:new).with('type', 'name', {'param' => 'temp'}).returns(res)
+                Puppet::Resource.expects(:new).with('type', 'name', :parameters => {'param' => 'temp'}).returns(res)
 
                 @resource.main
             end

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list