spec/unit/parser/functions/versioncmp_spec.rb in puppet-2.7.26 vs spec/unit/parser/functions/versioncmp_spec.rb in puppet-3.0.0.rc4

- old
+ new

@@ -1,14 +1,16 @@ -#!/usr/bin/env rspec +#! /usr/bin/env ruby -S rspec require 'spec_helper' describe "the versioncmp function" do before :all do Puppet::Parser::Functions.autoloader.loadall 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) end it "should exist" do Puppet::Parser::Functions.function("versioncmp").should == "function_versioncmp" end