An Autoload spec was depending on files having not yet been autoloaded.
Detected as part of #2879.

Signed-off-by: Jesse Wolfe <[email protected]>
---
 spec/unit/util/autoload.rb |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/spec/unit/util/autoload.rb b/spec/unit/util/autoload.rb
index 1893812..4e13842 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|
-- 
1.6.5

--

You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.


Reply via email to