diff options
Diffstat (limited to 'spec/unit/parser/functions/search_spec.rb')
-rwxr-xr-x | spec/unit/parser/functions/search_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/unit/parser/functions/search_spec.rb b/spec/unit/parser/functions/search_spec.rb index 81b774470..0d6d31bad 100755 --- a/spec/unit/parser/functions/search_spec.rb +++ b/spec/unit/parser/functions/search_spec.rb @@ -6,7 +6,9 @@ describe "the 'search' function" do Puppet::Parser::Functions.autoloader.loadall end - let :scope do Puppet::Parser::Scope.new end + let :node do Puppet::Node.new('localhost') end + let :compiler do Puppet::Parser::Compiler.new(node) end + let :scope do Puppet::Parser::Scope.new(:compiler => compiler) end it "should exist" do Puppet::Parser::Functions.function("search").should == "function_search" |