summaryrefslogtreecommitdiff
path: root/test/rubygems/test_deprecate.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rubygems/test_deprecate.rb')
-rw-r--r--test/rubygems/test_deprecate.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/rubygems/test_deprecate.rb b/test/rubygems/test_deprecate.rb
index 6d36b673df..15b501d4d2 100644
--- a/test/rubygems/test_deprecate.rb
+++ b/test/rubygems/test_deprecate.rb
@@ -50,7 +50,7 @@ class TestDeprecate < Gem::TestCase
def bar
@message = "bar"
end
- deprecate :foo, :bar, 2099, 3
+ deprecate :foo, :bar
end
@@ -70,7 +70,7 @@ class TestDeprecate < Gem::TestCase
assert_equal "", out
assert_match(/Thing#foo is deprecated; use bar instead\./, err)
- assert_match(/on or after 2099-03-01/, err)
+ assert_match(/in Rubygems [0-9]+/, err)
end
def test_deprecate_command
@@ -78,7 +78,7 @@ class TestDeprecate < Gem::TestCase
foo_command = Class.new(Gem::Command) do
extend Gem::Deprecate
- deprecate_command(2099, 4)
+ deprecate_command
def execute
puts "pew pew!"