summaryrefslogtreecommitdiff
path: root/test/rubygems
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-18 22:14:56 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-18 22:14:56 +0000
commit18b7112ec1923319bff52dfe280fb8b03b6c97bb (patch)
tree69bc3c21284ed8d28c0fd8c8f772dae62ef1bc75 /test/rubygems
parentaa7a74e4ffd38ec466b13779df8367070d435919 (diff)
* lib/rubygems: Update to RubyGems master 42543b6. Changes:
Fix `gem update` for gems with multiple platforms. * test/rubygems: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rubygems')
-rw-r--r--test/rubygems/test_gem_commands_update_command.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/rubygems/test_gem_commands_update_command.rb b/test/rubygems/test_gem_commands_update_command.rb
index 181784b61c..01e95cbbb4 100644
--- a/test/rubygems/test_gem_commands_update_command.rb
+++ b/test/rubygems/test_gem_commands_update_command.rb
@@ -390,6 +390,20 @@ class TestGemCommandsUpdateCommand < Gem::TestCase
end
end
+ def test_fetch_remote_gems_mismatch
+ platform = Gem::Platform.new 'x86-freebsd9'
+ a2_p = quick_spec 'a', 2 do |s| s.platform = platform end
+
+ util_setup_spec_fetcher @a2, a2_p
+
+ expected = [
+ [Gem::NameTuple.new('a', v(2), Gem::Platform::RUBY),
+ Gem::Source.new(@gem_repo)],
+ ]
+
+ assert_equal expected, @cmd.fetch_remote_gems(@a1)
+ end
+
def test_fetch_remote_gems_prerelease
@cmd.options[:prerelease] = true