summaryrefslogtreecommitdiffstats
path: root/spec/unit/resource
diff options
context:
space:
mode:
authorLuke Kanies <luke@puppetlabs.com>2010-05-17 12:22:31 -0700
committertest branch <puppet-dev@googlegroups.com>2010-02-17 06:50:53 -0800
commit4ba3dc22fe4c6b54564d468e70b79e4695911c61 (patch)
tree93358b64845a635de109491fe7822ef659f17098 /spec/unit/resource
parent20a74bc6f7146072b96a92d5c088c8906f564828 (diff)
downloadpuppet-4ba3dc22fe4c6b54564d468e70b79e4695911c61.tar.gz
puppet-4ba3dc22fe4c6b54564d468e70b79e4695911c61.tar.xz
puppet-4ba3dc22fe4c6b54564d468e70b79e4695911c61.zip
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 <luke@puppetlabs.com>
Diffstat (limited to 'spec/unit/resource')
-rwxr-xr-xspec/unit/resource/type.rb2
1 files changed, 2 insertions, 0 deletions
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