summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_source.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rubygems/test_gem_source.rb')
-rw-r--r--test/rubygems/test_gem_source.rb20
1 files changed, 10 insertions, 10 deletions
diff --git a/test/rubygems/test_gem_source.rb b/test/rubygems/test_gem_source.rb
index 30b45ea..fb53a89 100644
--- a/test/rubygems/test_gem_source.rb
+++ b/test/rubygems/test_gem_source.rb
@@ -199,30 +199,30 @@ class TestGemSource < Gem::TestCase
installed = Gem::Source::Installed.new
local = Gem::Source::Local.new
- assert_equal(0, remote. <=>(remote), 'remote <=> remote')
+ assert_equal(0, remote.<=>(remote), 'remote <=> remote')
- assert_equal(-1, remote. <=>(specific), 'remote <=> specific')
- assert_equal(1, specific. <=>(remote), 'specific <=> remote')
+ assert_equal(-1, remote.<=>(specific), 'remote <=> specific')
+ assert_equal(1, specific.<=>(remote), 'specific <=> remote')
- assert_equal(-1, remote. <=>(local), 'remote <=> local')
- assert_equal(1, local. <=>(remote), 'local <=> remote')
+ assert_equal(-1, remote.<=>(local), 'remote <=> local')
+ assert_equal(1, local.<=>(remote), 'local <=> remote')
- assert_equal(-1, remote. <=>(installed), 'remote <=> installed')
+ assert_equal(-1, remote.<=>(installed), 'remote <=> installed')
assert_equal(1, installed.<=>(remote), 'installed <=> remote')
no_uri = @source.dup
no_uri.instance_variable_set :@uri, nil
- assert_equal(-1, remote. <=>(no_uri), 'remote <=> no_uri')
+ 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')
+ 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