diff options
author | Luke Kanies <luke@madstop.com> | 2009-09-18 12:57:09 -0700 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2009-09-19 08:36:58 +1000 |
commit | d054fd91c9f6e4689b28a1db7206574c2c67ef14 (patch) | |
tree | 578ed36952fffdd4a923e89f41e97116feb38030 | |
parent | cde70cf0dc651bf1afb020d93a65cf2a175af33f (diff) | |
download | puppet-d054fd91c9f6e4689b28a1db7206574c2c67ef14.tar.gz puppet-d054fd91c9f6e4689b28a1db7206574c2c67ef14.tar.xz puppet-d054fd91c9f6e4689b28a1db7206574c2c67ef14.zip |
Fixing #2656 - puppet parseonly tests don't hang
It was hanging reading stdin because no code had
been supplied.
Signed-off-by: Luke Kanies <luke@madstop.com>
-rwxr-xr-x | 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 00fe1ddea..3c1143060 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 |