From f006e177ec366638b7df6b271edb4650bf2b7705 Mon Sep 17 00:00:00 2001 From: James Turnbull Date: Wed, 20 Feb 2008 11:14:34 +1100 Subject: Fixed test for #1040 --- spec/unit/parser/interpreter.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'spec/unit/parser') 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 -- cgit