diff options
Diffstat (limited to 'spec/unit/util/autoload_spec.rb')
-rwxr-xr-x | spec/unit/util/autoload_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/util/autoload_spec.rb b/spec/unit/util/autoload_spec.rb index 0f73a73d7..4186a1fb7 100755 --- a/spec/unit/util/autoload_spec.rb +++ b/spec/unit/util/autoload_spec.rb @@ -49,7 +49,7 @@ describe Puppet::Util::Autoload do it "should include the module directories, the Puppet libdir, and all of the Ruby load directories" do Puppet.stubs(:[]).with(:libdir).returns(%w{/libdir1 /lib/dir/two /third/lib/dir}.join(File::PATH_SEPARATOR)) @autoload.expects(:module_directories).returns %w{/one /two} - @autoload.search_directories.should == %w{/one /two /libdir1 /lib/dir/two /third/lib/dir} + $: + @autoload.search_directories.should == %w{/one /two /libdir1 /lib/dir/two /third/lib/dir} + $LOAD_PATH end it "should include in its search path all of the search directories that have a subdirectory matching the autoload path" do @@ -91,7 +91,7 @@ describe Puppet::Util::Autoload do @autoload.load("myfile") - $".should be_include("tmp/myfile.rb") + $LOADED_FEATURES.should be_include("tmp/myfile.rb") end end |