diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-29 06:52:18 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-29 06:52:18 +0000 |
commit | 9694bb8cac12969300692dac5a1cf7aa4e3a46cd (patch) | |
tree | c3cb423d701f7049ba9382de052e2a937cd1302d /test/rubygems/test_gem_local_remote_options.rb | |
parent | 3f606b7063fc7a8b191556365ad343a314719a8d (diff) | |
download | ruby-9694bb8cac12969300692dac5a1cf7aa4e3a46cd.tar.gz |
* lib/rubygems*: Updated to RubyGems 2.0
* test/rubygems*: ditto.
* common.mk (prelude): Updated for RubyGems 2.0 source rearrangement.
* tool/change_maker.rb: Allow invalid UTF-8 characters in source
files.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rubygems/test_gem_local_remote_options.rb')
-rw-r--r-- | test/rubygems/test_gem_local_remote_options.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/rubygems/test_gem_local_remote_options.rb b/test/rubygems/test_gem_local_remote_options.rb index 0141a3150d..90142efb8f 100644 --- a/test/rubygems/test_gem_local_remote_options.rb +++ b/test/rubygems/test_gem_local_remote_options.rb @@ -40,6 +40,8 @@ class TestGemLocalRemoteOptions < Gem::TestCase end def test_clear_sources_option_idiot_proof + util_setup_fake_fetcher + @cmd.add_local_remote_options @cmd.handle_options %W[--clear-sources] assert_equal Gem.default_sources, Gem.sources @@ -78,10 +80,14 @@ class TestGemLocalRemoteOptions < Gem::TestCase s4 = URI.parse 'http://more-gems.example.com/' # Intentional duplicate original_sources = Gem.sources.dup + @cmd.handle_options %W[--source #{s1} --source #{s2} --source #{s3} --source #{s4}] - assert_equal [original_sources, s1.to_s, s2.to_s, "#{s3}/"].flatten, - Gem.sources + original_sources << s1.to_s + original_sources << s2.to_s + original_sources << "#{s3}/" + + assert_equal original_sources, Gem.sources end def test_update_sources_option |