[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, experimental, updated. debian/2.6.8-1-844-g7ec39d5

Daniel Pittman daniel at rimspace.net
Tue May 10 08:05:48 UTC 2011


The following commit has been merged in the experimental branch:
commit 85a743b7e87649c149c9914b6e0909472d059517
Author: Daniel Pittman <daniel at rimspace.net>
Date:   Thu Mar 3 11:09:25 2011 -0800

    (#6582) stub puts to prevent screen output when testing help.
    
    We only really want to verify that the code exits, but the current
    implementation emits text directly; this results in messing up the tests,
    which we can avoid with this tiny shim.
    
    Reviewed-By: Nick Lewis <nick at puppetlabs.com>

diff --git a/spec/unit/application_spec.rb b/spec/unit/application_spec.rb
index ca663e3..befc4f5 100755
--- a/spec/unit/application_spec.rb
+++ b/spec/unit/application_spec.rb
@@ -287,6 +287,7 @@ describe Puppet::Application do
 
       it "should call exit" do
         @app.expects(:exit)
+        @app.stubs(:puts)
 
         @app.handle_help(nil)
       end

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list