From 8da8d4b043c37b53a69803c71ff36b478d4776d0 Mon Sep 17 00:00:00 2001 From: hsbt Date: Wed, 30 May 2018 13:01:35 +0000 Subject: Merge RubyGems 3.0.0.beta1. * It drop to support < Ruby 2.2 * Cleanup deprecated methods and classes. * Mark obsoleted methods to deprecate. * and other enhancements. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63528 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/rubygems/test_gem_commands_update_command.rb | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'test/rubygems/test_gem_commands_update_command.rb') diff --git a/test/rubygems/test_gem_commands_update_command.rb b/test/rubygems/test_gem_commands_update_command.rb index fa444fa32f..549e34c218 100644 --- a/test/rubygems/test_gem_commands_update_command.rb +++ b/test/rubygems/test_gem_commands_update_command.rb @@ -217,7 +217,6 @@ class TestGemCommandsUpdateCommand < Gem::TestCase end def test_execute_rdoc - skip if RUBY_VERSION <= "1.8.7" spec_fetcher do |fetcher| fetcher.download 'a', 2 fetcher.spec 'a', 1 @@ -504,5 +503,23 @@ class TestGemCommandsUpdateCommand < Gem::TestCase assert_empty arguments end -end + def test_explain + spec_fetcher do |fetcher| + fetcher.download 'a', 2 + fetcher.spec 'a', 1 + end + + @cmd.options[:explain] = true + @cmd.options[:args] = %w[a] + + use_ui @ui do + @cmd.execute + end + + out = @ui.output.split "\n" + assert_equal "Gems to update:", out.shift + assert_equal " a-2", out.shift + assert_empty out + end +end -- cgit v1.2.3