summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_gem_runner.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2020-02-06 21:54:23 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-02-06 21:57:18 +0900
commitbd0a02d1433b6d9a9dcde38eb9fb2dbc3b1071e9 (patch)
tree6aad8ab42a15c62490a26cf24c362ffc76ad9764 /test/rubygems/test_gem_gem_runner.rb
parentd767da428c28b7b9fec56b383bb32f6f76c6ad26 (diff)
Revert to remove the query command of rubygems.
The original commit was https://github.com/rubygems/rubygems/pull/3119
Diffstat (limited to 'test/rubygems/test_gem_gem_runner.rb')
-rw-r--r--test/rubygems/test_gem_gem_runner.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/rubygems/test_gem_gem_runner.rb b/test/rubygems/test_gem_gem_runner.rb
index 71b792c957..b700a333f4 100644
--- a/test/rubygems/test_gem_gem_runner.rb
+++ b/test/rubygems/test_gem_gem_runner.rb
@@ -67,6 +67,16 @@ class TestGemGemRunner < Gem::TestCase
assert_equal %w[--foo], args
end
+ def test_query_is_deprecated
+ args = %w[query]
+
+ use_ui @ui do
+ assert_nil @runner.run(args)
+ end
+
+ assert_equal "WARNING: query command is deprecated. It will be removed on or after 2020-12-01.\n", @ui.error
+ end
+
def test_info_succeeds
args = %w[info]