From 4ba3dc22fe4c6b54564d468e70b79e4695911c61 Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Mon, 17 May 2010 12:22:31 -0700 Subject: Fixing #2655 - Adding default parameter values to resources We were previously just adding these values as variables in the local scope, but we now add them to the resources so they get passed to the client in the catalog and are thus inspectable. Signed-off-by: Luke Kanies --- spec/unit/resource/type.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'spec/unit/resource') diff --git a/spec/unit/resource/type.rb b/spec/unit/resource/type.rb index 3e537bbbb..bab2522e4 100755 --- a/spec/unit/resource/type.rb +++ b/spec/unit/resource/type.rb @@ -290,7 +290,9 @@ describe Puppet::Resource::Type do 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 -- cgit