From 8c8e9210a2b538a1848d309ef9f3966d94a95de9 Mon Sep 17 00:00:00 2001 From: Jesse Wolfe Date: Fri, 18 Dec 2009 16:15:37 -0800 Subject: Fixing #2963 spec/unit/util/autoload.rb depends on global state An Autoload spec was depending on files having not yet been autoloaded. Detected as part of #2879. Signed-off-by: Jesse Wolfe --- spec/unit/util/autoload.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'spec/unit/util/autoload.rb') diff --git a/spec/unit/util/autoload.rb b/spec/unit/util/autoload.rb index 18938125d..4e1384246 100755 --- a/spec/unit/util/autoload.rb +++ b/spec/unit/util/autoload.rb @@ -111,6 +111,8 @@ describe Puppet::Util::Autoload do before do @autoload.stubs(:searchpath).returns %w{/a} Dir.stubs(:glob).returns "/path/to/file.rb" + + @autoload.class.stubs(:loaded?).returns(false) end [RuntimeError, LoadError, SyntaxError].each do |error| -- cgit