summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2009-09-18 12:57:09 -0700
committerJames Turnbull <james@lovedthanlost.net>2009-09-19 08:36:58 +1000
commitd054fd91c9f6e4689b28a1db7206574c2c67ef14 (patch)
tree578ed36952fffdd4a923e89f41e97116feb38030
parentcde70cf0dc651bf1afb020d93a65cf2a175af33f (diff)
downloadpuppet-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-xspec/unit/application/puppet.rb1
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