summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_source_specific_file.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-13 19:58:57 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-13 19:58:57 +0000
commit1daa0b113d853bfa57b776cc569939b61ca14292 (patch)
treef8c4acb08a551820299dff2b13966d6ac38d31e4 /test/rubygems/test_gem_source_specific_file.rb
parent85995e88d49c442b5b113c2676456133e79f5c02 (diff)
* lib/rubygems: Update to RubyGems 2.1.3
Fixed installing platform gems Restored concurrent requires Fixed installing gems with extensions with --install-dir Fixed `gem fetch -v` to install the latest version Fixed installing gems with "./" in their files entries * test/rubygems/test_gem_package.rb: Tests for the above. * NEWS: Updated for RubyGems 2.1.3 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42938 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rubygems/test_gem_source_specific_file.rb')
-rw-r--r--test/rubygems/test_gem_source_specific_file.rb40
1 files changed, 1 insertions, 39 deletions
diff --git a/test/rubygems/test_gem_source_specific_file.rb b/test/rubygems/test_gem_source_specific_file.rb
index 8ccbe50..7ffcf48 100644
--- a/test/rubygems/test_gem_source_specific_file.rb
+++ b/test/rubygems/test_gem_source_specific_file.rb
@@ -1,5 +1,5 @@
require 'rubygems/test_case'
-require 'rubygems/source/specific_file'
+require 'rubygems/source_specific_file'
class TestGemSourceSpecificFile < Gem::TestCase
def setup
@@ -30,42 +30,4 @@ class TestGemSourceSpecificFile < Gem::TestCase
def test_download
assert_equal @a_gem, @sf.download(@a)
end
-
- def test_spaceship
- a1 = quick_gem 'a', '1'
- util_build_gem a1
-
- remote = Gem::Source.new @gem_repo
- specific = Gem::Source::SpecificFile.new a1.cache_file
- installed = Gem::Source::Installed.new
- local = Gem::Source::Local.new
-
- assert_equal( 0, specific. <=>(specific), 'specific <=> specific')
-
- assert_equal(-1, remote. <=>(specific), 'remote <=> specific')
- assert_equal( 1, specific. <=>(remote), 'specific <=> remote')
-
- assert_equal(-1, specific. <=>(local), 'specific <=> local')
- assert_equal( 1, local. <=>(specific), 'local <=> specific')
-
- assert_equal(-1, specific. <=>(installed), 'specific <=> installed')
- assert_equal( 1, installed.<=>(specific), 'installed <=> specific')
-
- a2 = quick_gem 'a', '2'
- util_build_gem a2
-
- b1 = quick_gem 'b', '1'
- util_build_gem b1
-
- a1_source = specific
- a2_source = Gem::Source::SpecificFile.new a2.cache_file
- b1_source = Gem::Source::SpecificFile.new b1.cache_file
-
- assert_nil a1_source.<=>(b1_source), 'a1_source <=> b1_source'
-
- assert_equal(-1, a1_source.<=>(a2_source), 'a1_source <=> a2_source')
- assert_equal( 0, a1_source.<=>(a1_source), 'a1_source <=> a1_source')
- assert_equal( 1, a2_source.<=>(a1_source), 'a2_source <=> a1_source')
- end
-
end