[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. 0.25.5-639-g8f94f35
test branch
puppet-dev at googlegroups.com
Wed Jul 14 10:34:00 UTC 2010
The following commit has been merged in the upstream branch:
commit 20a74bc6f7146072b96a92d5c088c8906f564828
Author: Luke Kanies <luke at puppetlabs.com>
Date: Mon May 17 12:21:53 2010 -0700
Refactoring tests - replacing stubs with instances
Signed-off-by: Luke Kanies <luke at puppetlabs.com>
diff --git a/spec/unit/resource/type.rb b/spec/unit/resource/type.rb
index cd1881f..3e537bb 100755
--- a/spec/unit/resource/type.rb
+++ b/spec/unit/resource/type.rb
@@ -284,17 +284,13 @@ describe Puppet::Resource::Type do
it "should evaluate and set its default values as variables for parameters not provided by the resource" do
@type.set_arguments :foo => stub("value", :safeevaluate => "something")
-
@type.set_resource_parameters(@resource, @scope)
-
@scope.lookupvar("foo").should == "something"
end
it "should set all default values as parameters in the resource" do
@type.set_arguments :foo => stub("value", :safeevaluate => "something")
-
@type.set_resource_parameters(@resource, @scope)
-
@resource[:foo].should == "something"
end
--
Puppet packaging for Debian
More information about the Pkg-puppet-devel
mailing list