diff options
Diffstat (limited to 'spec/unit/parser/functions/fqdn_rand_spec.rb')
-rwxr-xr-x | spec/unit/parser/functions/fqdn_rand_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/unit/parser/functions/fqdn_rand_spec.rb b/spec/unit/parser/functions/fqdn_rand_spec.rb index a6b0d6b29..d7e8bd106 100755 --- a/spec/unit/parser/functions/fqdn_rand_spec.rb +++ b/spec/unit/parser/functions/fqdn_rand_spec.rb @@ -7,7 +7,9 @@ describe "the fqdn_rand function" do end 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) @scope[:fqdn] = "127.0.0.1" end |