summaryrefslogtreecommitdiff
path: root/spec/unit/parser/ast/resource_reference_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/parser/ast/resource_reference_spec.rb')
-rwxr-xr-xspec/unit/parser/ast/resource_reference_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/unit/parser/ast/resource_reference_spec.rb b/spec/unit/parser/ast/resource_reference_spec.rb
index d7f4ba503..174c8aef5 100755
--- a/spec/unit/parser/ast/resource_reference_spec.rb
+++ b/spec/unit/parser/ast/resource_reference_spec.rb
@@ -6,7 +6,9 @@ describe Puppet::Parser::AST::ResourceReference do
ast = Puppet::Parser::AST
before :each do
- @scope = Puppet::Parser::Scope.new
+ node = Puppet::Node.new('localhost')
+ compiler = Puppet::Parser::Compiler.new(node)
+ @scope = Puppet::Parser::Scope.new(:compiler => compiler)
end
def ast_name(value)