aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems/test_gem_command_manager.rb
diff options
context:
space:
mode:
authorbronzdoc <lsagastume1990@gmail.com>2020-03-28 18:11:40 -0600
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-05-08 07:38:50 +0900
commitff37dd7e9e80e7b8882f24b0e56c69674fb7bdb0 (patch)
tree33411b1c192278c31846541e99404f2a0081f5e0 /test/rubygems/test_gem_command_manager.rb
parent42c91de9ce97556a9be2c702f317cf1d6107bc03 (diff)
downloadruby-ff37dd7e9e80e7b8882f24b0e56c69674fb7bdb0.tar.gz
[rubygems/rubygems] Modify files to use new version horizon deprecations
https://github.com/rubygems/rubygems/commit/4fe5bb5bf3
Diffstat (limited to 'test/rubygems/test_gem_command_manager.rb')
-rw-r--r--test/rubygems/test_gem_command_manager.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/rubygems/test_gem_command_manager.rb b/test/rubygems/test_gem_command_manager.rb
index c6aaff291a..497ff1e208 100644
--- a/test/rubygems/test_gem_command_manager.rb
+++ b/test/rubygems/test_gem_command_manager.rb
@@ -281,7 +281,7 @@ class TestGemCommandManager < Gem::TestCase
foo_command = Class.new(Gem::Command) do
extend Gem::Deprecate
- deprecate_command(2099, 4)
+ deprecate_command
def execute
say "pew pew!"
@@ -296,7 +296,7 @@ class TestGemCommandManager < Gem::TestCase
end
assert_equal "pew pew!\n", @ui.output
- assert_equal("WARNING: foo command is deprecated. It will be removed on or after 2099-04-01.\n", @ui.error)
+ assert_match(/WARNING: foo command is deprecated. It will be removed in Rubygems [0-9]+/, @ui.error)
ensure
Gem::Commands.send(:remove_const, :FooCommand)
end