diff options
author | Brice Figureau <brice-puppet@daysofwonder.com> | 2009-12-29 15:28:27 +0100 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2010-01-19 08:37:23 +1100 |
commit | 91c44b439794a87111ab1a0726a2ad08981c839e (patch) | |
tree | 71a97346b843acb97a2246b2831d774d95c88813 | |
parent | d77c9ace9fa3dc39fa1b36f1224d3eda32ed2703 (diff) | |
download | puppet-91c44b439794a87111ab1a0726a2ad08981c839e.tar.gz puppet-91c44b439794a87111ab1a0726a2ad08981c839e.tar.xz puppet-91c44b439794a87111ab1a0726a2ad08981c839e.zip |
Fix a few puppetd specs tests
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
-rwxr-xr-x | spec/unit/application/puppetd.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/unit/application/puppetd.rb b/spec/unit/application/puppetd.rb index 9b8d1bea3..dc061ea10 100755 --- a/spec/unit/application/puppetd.rb +++ b/spec/unit/application/puppetd.rb @@ -457,6 +457,7 @@ describe "puppetd" do describe "with --onetime" do before :each do + @agent.stubs(:run).returns(:report) @puppetd.options.stubs(:[]).with(:client).returns(:client) @puppetd.options.stubs(:[]).with(:detailed_exitcodes).returns(false) @puppetd.stubs(:exit).with(0) @@ -479,7 +480,7 @@ describe "puppetd" do end it "should let the agent run" do - @agent.expects(:run) + @agent.expects(:run).returns(:report) @puppetd.onetime end |