mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
rubygems 2.6.7
* lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update
rubygems to 2.6.7.
Release note of 2.6.7: 60f35bd1d2
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cc00f5bf36
commit
69934aeb8d
31 changed files with 511 additions and 161 deletions
|
@ -228,6 +228,15 @@ class TestGemSource < Gem::TestCase
|
|||
assert_equal(-1, remote. <=>(no_uri), 'remote <=> no_uri')
|
||||
end
|
||||
|
||||
def test_spaceship_order_is_preserved_when_uri_differs
|
||||
sourceA = Gem::Source.new "http://example.com/a"
|
||||
sourceB = Gem::Source.new "http://example.com/b"
|
||||
|
||||
assert_equal( 0, sourceA. <=>(sourceA), 'sourceA <=> sourceA')
|
||||
assert_equal( 1, sourceA. <=>(sourceB), 'sourceA <=> sourceB')
|
||||
assert_equal( 1, sourceB. <=>(sourceA), 'sourceB <=> sourceA')
|
||||
end
|
||||
|
||||
def test_update_cache_eh
|
||||
assert @source.update_cache?
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue