diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-02-14 12:59:03 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-02-14 12:59:03 +0000 |
commit | 4ae3df42f723d25b0fe4ba6b2689d607b01c6f48 (patch) | |
tree | 26c5f5cf033f79373e63b10f684df07898b7cd8f /test/rubygems/test_gem_commands_update_command.rb | |
parent | d1e6304a891fc5e9cc63e50520bdc798fb95b829 (diff) | |
download | ruby-4ae3df42f723d25b0fe4ba6b2689d607b01c6f48.tar.gz |
Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c
This version contains the some style changes by RuboCop.
* https://github.com/rubygems/rubygems/commit/9d810be0ede925fb2e3af535848582c3f8e0e72f
* https://github.com/rubygems/rubygems/commit/61ea98a727fb1b76b6fac52d74107ee4b02aaef2
* https://github.com/rubygems/rubygems/commit/795893dce3c5f8540804fc08144cc6a90f086b13
* https://github.com/rubygems/rubygems/commit/9be7858f7f17eae3058204f3c03e4b798ba18b9c
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rubygems/test_gem_commands_update_command.rb')
-rw-r--r-- | test/rubygems/test_gem_commands_update_command.rb | 37 |
1 files changed, 29 insertions, 8 deletions
diff --git a/test/rubygems/test_gem_commands_update_command.rb b/test/rubygems/test_gem_commands_update_command.rb index 549e34c218..0247a03477 100644 --- a/test/rubygems/test_gem_commands_update_command.rb +++ b/test/rubygems/test_gem_commands_update_command.rb @@ -66,7 +66,9 @@ class TestGemCommandsUpdateCommand < Gem::TestCase def test_execute_system spec_fetcher do |fetcher| - fetcher.download 'rubygems-update', 9 do |s| s.files = %w[setup.rb] end + fetcher.download 'rubygems-update', 9 do |s| + s.files = %w[setup.rb] + end end @cmd.options[:args] = [] @@ -107,8 +109,13 @@ class TestGemCommandsUpdateCommand < Gem::TestCase def test_execute_system_multiple spec_fetcher do |fetcher| - fetcher.download 'rubygems-update', 8 do |s| s.files = %w[setup.rb] end - fetcher.download 'rubygems-update', 9 do |s| s.files = %w[setup.rb] end + fetcher.download 'rubygems-update', 8 do |s| + s.files = %w[setup.rb] + end + + fetcher.download 'rubygems-update', 9 do |s| + s.files = %w[setup.rb] + end end @cmd.options[:args] = [] @@ -128,8 +135,13 @@ class TestGemCommandsUpdateCommand < Gem::TestCase def test_execute_system_specific spec_fetcher do |fetcher| - fetcher.download 'rubygems-update', 8 do |s| s.files = %w[setup.rb] end - fetcher.download 'rubygems-update', 9 do |s| s.files = %w[setup.rb] end + fetcher.download 'rubygems-update', 8 do |s| + s.files = %w[setup.rb] + end + + fetcher.download 'rubygems-update', 9 do |s| + s.files = %w[setup.rb] + end end @cmd.options[:args] = [] @@ -149,8 +161,13 @@ class TestGemCommandsUpdateCommand < Gem::TestCase def test_execute_system_specifically_to_latest_version spec_fetcher do |fetcher| - fetcher.download 'rubygems-update', 8 do |s| s.files = %w[setup.rb] end - fetcher.download 'rubygems-update', 9 do |s| s.files = %w[setup.rb] end + fetcher.download 'rubygems-update', 8 do |s| + s.files = %w[setup.rb] + end + + fetcher.download 'rubygems-update', 9 do |s| + s.files = %w[setup.rb] + end end @cmd.options[:args] = [] @@ -387,7 +404,10 @@ class TestGemCommandsUpdateCommand < Gem::TestCase specs = spec_fetcher do |fetcher| fetcher.spec 'a', 1 fetcher.spec 'a', 2 - fetcher.spec 'a', 2 do |s| s.platform = platform end + + fetcher.spec 'a', 2 do |s| + s.platform = platform + end end expected = [ @@ -522,4 +542,5 @@ class TestGemCommandsUpdateCommand < Gem::TestCase assert_equal " a-2", out.shift assert_empty out end + end |