summaryrefslogtreecommitdiff
path: root/spec/unit/parser/functions/versioncmp_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/parser/functions/versioncmp_spec.rb')
-rwxr-xr-xspec/unit/parser/functions/versioncmp_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/unit/parser/functions/versioncmp_spec.rb b/spec/unit/parser/functions/versioncmp_spec.rb
index 34534570c..6b7bc093e 100755
--- a/spec/unit/parser/functions/versioncmp_spec.rb
+++ b/spec/unit/parser/functions/versioncmp_spec.rb
@@ -7,7 +7,9 @@ describe "the versioncmp 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)
end
it "should exist" do