diff options
author | bronzdoc <lsagastume1990@gmail.com> | 2020-08-31 00:21:20 -0600 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-09-28 14:54:22 +0900 |
commit | be980dd9fa99dc42b064ce596240f7623b97f1fb (patch) | |
tree | 20349b55b7a5f718d48f92b0755bfbb791b74905 /test/rubygems | |
parent | b83787b1ceb4441362fd3d966ce099e360a48646 (diff) |
[rubygems/rubygems] Deprecate --dryrun
https://github.com/rubygems/rubygems/commit/1715610648
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3599
Diffstat (limited to 'test/rubygems')
-rw-r--r-- | test/rubygems/test_gem_commands_cleanup_command.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/rubygems/test_gem_commands_cleanup_command.rb b/test/rubygems/test_gem_commands_cleanup_command.rb index 47d953d4dd..81f9a24db5 100644 --- a/test/rubygems/test_gem_commands_cleanup_command.rb +++ b/test/rubygems/test_gem_commands_cleanup_command.rb @@ -26,6 +26,17 @@ class TestGemCommandsCleanupCommand < Gem::TestCase assert @cmd.options[:dryrun] end + def test_handle_options_deprecated_dry_run + use_ui @ui do + @cmd.handle_options %w[--dryrun] + assert @cmd.options[:dryrun] + end + + assert_equal \ + "WARNING: The \"--dryrun\" option has been deprecated and will be removed in future versions of Rubygems. Use --dry-run instead\n", + @ui.error + end + def test_handle_options_n @cmd.handle_options %w[-n] assert @cmd.options[:dryrun] |