summaryrefslogtreecommitdiff
path: root/spec/unit/parser/functions/extlookup_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/parser/functions/extlookup_spec.rb')
-rwxr-xr-xspec/unit/parser/functions/extlookup_spec.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/unit/parser/functions/extlookup_spec.rb b/spec/unit/parser/functions/extlookup_spec.rb
index eadf51662..e1d56f4a9 100755
--- a/spec/unit/parser/functions/extlookup_spec.rb
+++ b/spec/unit/parser/functions/extlookup_spec.rb
@@ -10,8 +10,9 @@ describe "the extlookup function" do
end
before :each do
- @scope = Puppet::Parser::Scope.new
- @scope.stubs(:environment).returns(Puppet::Node::Environment.new('production'))
+ node = Puppet::Node.new('localhost')
+ compiler = Puppet::Parser::Compiler.new(node)
+ @scope = Puppet::Parser::Scope.new(:compiler => compiler)
end
it "should exist" do