mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Import RubyGems 1.0.0, r1575
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
40d8543fbd
commit
8289771e32
47 changed files with 1170 additions and 1010 deletions
|
|
@ -178,7 +178,7 @@ class TestGemSourceIndex < RubyGemTestCase
|
|||
end
|
||||
|
||||
def test_latest_specs
|
||||
spec = quick_gem @gem1.name, '0.0.1'
|
||||
spec = quick_gem @gem1.name, '1'
|
||||
@source_index.add_spec spec
|
||||
|
||||
expected = [
|
||||
|
|
@ -223,7 +223,7 @@ class TestGemSourceIndex < RubyGemTestCase
|
|||
|
||||
def test_search
|
||||
assert_equal [@gem1, @gem4], @source_index.search("gem_one")
|
||||
assert_equal [@gem1], @source_index.search("gem_one", "= 0.0.2")
|
||||
assert_equal [@gem1], @source_index.search("gem_one", "= 2")
|
||||
|
||||
assert_equal [], @source_index.search("bogusstring")
|
||||
assert_equal [], @source_index.search("gem_one", "= 3.2.1")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue