summaryrefslogtreecommitdiffstats
path: root/spec/unit/parser/interpreter.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/parser/interpreter.rb')
-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