summaryrefslogtreecommitdiffstats
path: root/spec/unit
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2008-02-20 11:14:34 +1100
committerJames Turnbull <james@lovedthanlost.net>2008-02-20 11:14:34 +1100
commitf006e177ec366638b7df6b271edb4650bf2b7705 (patch)
treed8364facd2e9dce60bebf6af2df6b9639c093748 /spec/unit
parent1f0ea5a0e8629f0ff281153d710ef9e75bee3134 (diff)
downloadpuppet-f006e177ec366638b7df6b271edb4650bf2b7705.tar.gz
puppet-f006e177ec366638b7df6b271edb4650bf2b7705.tar.xz
puppet-f006e177ec366638b7df6b271edb4650bf2b7705.zip
Fixed test for #1040
Diffstat (limited to 'spec/unit')
-rwxr-xr-xspec/unit/parser/interpreter.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/unit/parser/interpreter.rb b/spec/unit/parser/interpreter.rb
index 7885f0542..eb5dd9aaf 100755
--- a/spec/unit/parser/interpreter.rb
+++ b/spec/unit/parser/interpreter.rb
@@ -127,6 +127,7 @@ describe Puppet::Parser::Interpreter, " when compiling catalog" do
end
it "should fail intelligently when no parser can be found" do
+ @node.stubs(:name).returns("whatever")
@interp.expects(:parser).with(:myenv).returns(nil)
proc { @interp.compile(@node) }.should raise_error(Puppet::ParseError)
end