1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/rubygems: update to 1.3.6.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-02-22 02:52:35 +00:00
parent 65544f575b
commit b551e8c8b3
119 changed files with 2735 additions and 2613 deletions

View file

@ -22,6 +22,9 @@ class TestGemGemPathSearcher < RubyGemTestCase
@foo2 = quick_gem 'foo', '0.2'
@bar1 = quick_gem 'bar', '0.1'
@bar2 = quick_gem 'bar', '0.2'
@nrp = quick_gem 'nil_require_paths', '0.1'
@nrp.require_paths = nil
@fetcher = Gem::FakeFetcher.new
Gem::RemoteFetcher.fetcher = @fetcher
@ -50,6 +53,10 @@ class TestGemGemPathSearcher < RubyGemTestCase
assert_equal expected, lib_dirs
end
def test_lib_dirs_for_nil_require_paths
assert_nil @gps.lib_dirs_for(@nrp)
end
def test_matching_file_eh
refute @gps.matching_file?(@foo1, 'bar')
assert @gps.matching_file?(@foo1, 'foo')
@ -63,5 +70,9 @@ class TestGemGemPathSearcher < RubyGemTestCase
assert_equal [expected], @gps.matching_files(@foo1, 'foo')
end
def test_matching_files_nil_require_paths
assert_empty @gps.matching_files(@nrp, 'foo')
end
end