diff options
Diffstat (limited to 'spec/unit/application/resource.rb')
-rwxr-xr-x | spec/unit/application/resource.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/application/resource.rb b/spec/unit/application/resource.rb index 9d47ba56e..ebb8c4f3e 100755 --- a/spec/unit/application/resource.rb +++ b/spec/unit/application/resource.rb @@ -202,7 +202,7 @@ describe "resource" do push_args('type','name','param=temp') res = stub "resource" - res.expects(:save).with{|x| x.uri == 'https://host:8139/production/resources/type/name'}.returns(res) + 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) @@ -240,7 +240,7 @@ describe "resource" do push_args('type','name','param=temp') res = stub "resource" - res.expects(:save).with{|x| x.uri == nil}.returns(res) + 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) |