summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rwxr-xr-xspec/unit/transaction/resource_harness.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/transaction/resource_harness.rb b/spec/unit/transaction/resource_harness.rb
index f69b560f8..2abec3cc0 100755
--- a/spec/unit/transaction/resource_harness.rb
+++ b/spec/unit/transaction/resource_harness.rb
@@ -204,14 +204,14 @@ describe Puppet::Transaction::ResourceHarness do
describe "when applying changes" do
before do
- @change1 = stub 'change1', :apply => stub("event")
- @change2 = stub 'change2', :apply => stub("event")
+ @change1 = stub 'change1', :apply => stub("event", :status => "success")
+ @change2 = stub 'change2', :apply => stub("event", :status => "success")
@changes = [@change1, @change2]
end
it "should apply the change" do
- @change1.expects(:apply)
- @change2.expects(:apply)
+ @change1.expects(:apply).returns( stub("event", :status => "success") )
+ @change2.expects(:apply).returns( stub("event", :status => "success") )
@harness.apply_changes(@status, @changes)
end