* 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
This commit is contained in:
nobu 2009-10-04 04:53:57 +00:00
Родитель ea56a70eb8
Коммит 57940c0323
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -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