From: Daniel Pittman <[email protected]> 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 <[email protected]> --- spec/unit/application_spec.rb | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) 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 -- 1.7.4.1 -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.
