[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. 0.25.5-639-g8f94f35

James Turnbull james at lovedthanlost.net
Wed Jul 14 10:29:51 UTC 2010


The following commit has been merged in the upstream branch:
commit 91c44b439794a87111ab1a0726a2ad08981c839e
Author: Brice Figureau <brice-puppet at daysofwonder.com>
Date:   Tue Dec 29 15:28:27 2009 +0100

    Fix a few puppetd specs tests
    
    Signed-off-by: Brice Figureau <brice-puppet at daysofwonder.com>

diff --git a/spec/unit/application/puppetd.rb b/spec/unit/application/puppetd.rb
index 9b8d1be..dc061ea 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

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list