From 57940c032366f25ff118bb5b6c305fe103431e29 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 4 Oct 2009 04:53:57 +0000 Subject: * test/rubygems/test_gem.rb (TestGem#test_self_find_files): "." is no longer included in $LOAD_PATH. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/rubygems/test_gem.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/rubygems/test_gem.rb b/test/rubygems/test_gem.rb index ccdd2e3c08..e18004c4ea 100644 --- a/test/rubygems/test_gem.rb +++ b/test/rubygems/test_gem.rb @@ -266,6 +266,8 @@ class TestGem < RubyGemTestCase def test_self_find_files discover_path = File.join 'lib', 'foo', 'discover.rb' + cwd = File.expand_path('..', __FILE__) + $LOAD_PATH.unshift(cwd.dup) foo1 = quick_gem 'foo', '1' do |s| s.files << discover_path @@ -289,12 +291,14 @@ class TestGem < RubyGemTestCase Gem.searcher = nil expected = [ - File.expand_path('foo/discover.rb', File.dirname(__FILE__)), + File.expand_path('../foo/discover.rb', __FILE__), File.join(foo2.full_gem_path, discover_path), File.join(foo1.full_gem_path, discover_path), ] assert_equal expected, Gem.find_files('foo/discover') + ensure + assert_equal(cwd, $LOAD_PATH.shift) end def test_self_latest_load_paths -- cgit v1.2.3