diff options
author | Daniel Pittman <daniel@puppetlabs.com> | 2011-03-16 14:25:10 -0700 |
---|---|---|
committer | Daniel Pittman <daniel@puppetlabs.com> | 2011-03-16 17:22:24 -0700 |
commit | f4401d34c106654d8af1f774d0b0bba27c5d4445 (patch) | |
tree | 3110fdbfbef5c60443ac2fa6d7b611090764f64d /spec/unit/parser/functions/require_spec.rb | |
parent | b40021ba4bb1bc328abd54eb2eb7cae7ee82f7cf (diff) | |
download | puppet-f4401d34c106654d8af1f774d0b0bba27c5d4445.tar.gz puppet-f4401d34c106654d8af1f774d0b0bba27c5d4445.tar.xz puppet-f4401d34c106654d8af1f774d0b0bba27c5d4445.zip |
(#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 <nick@puppetlabs.com>
Diffstat (limited to 'spec/unit/parser/functions/require_spec.rb')
-rwxr-xr-x | spec/unit/parser/functions/require_spec.rb | 3 |
1 files changed, 3 insertions, 0 deletions
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' |