From f4401d34c106654d8af1f774d0b0bba27c5d4445 Mon Sep 17 00:00:00 2001 From: Daniel Pittman Date: Wed, 16 Mar 2011 14:25:10 -0700 Subject: (#6722) load all functions before testing... We historically had a state-dependency across tests in the parser function support area; the first test caused the function to be loaded, and other tests would then fail as a consequence of that. We now autoload all functions at the top of each test suite, allowing us to correctly and sensibly test on them as we should. This theoretically prevents us from testing the autoloader implicitly in these tests, but that should be tested independently. Paired-With: Nick Lewis --- spec/unit/parser/functions/require_spec.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'spec/unit/parser/functions/require_spec.rb') diff --git a/spec/unit/parser/functions/require_spec.rb b/spec/unit/parser/functions/require_spec.rb index 4afbd5a63..edcbc4ae6 100755 --- a/spec/unit/parser/functions/require_spec.rb +++ b/spec/unit/parser/functions/require_spec.rb @@ -3,6 +3,9 @@ require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper') describe "the require function" do + before :all do + Puppet::Parser::Functions.autoloader.loadall + end before :each do @catalog = stub 'catalog' -- cgit