It was hanging reading stdin because no code had
been supplied.

Signed-off-by: Luke Kanies <[email protected]>
---
 spec/unit/application/puppet.rb |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/spec/unit/application/puppet.rb b/spec/unit/application/puppet.rb
index 00fe1dd..3c11430 100755
--- a/spec/unit/application/puppet.rb
+++ b/spec/unit/application/puppet.rb
@@ -143,6 +143,7 @@ describe "Puppet" do
                 @interpreter = stub_everything
                 Puppet.stubs(:err)
                 @puppet.stubs(:exit)
+                @puppet.options.stubs(:[]).with(:code).returns "some code"
                 Puppet::Parser::Interpreter.stubs(:new).returns(@interpreter)
             end
 
-- 
1.6.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
-~----------~----~----~----~------~----~------~--~---

Reply via email to