summaryrefslogtreecommitdiff
path: root/test/rubygems/test_deprecate.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2020-09-23 21:59:35 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-09-23 22:01:44 +0900
commitb717f73402dc6f2d6ba6a1d72d9c8543a4f2cd27 (patch)
tree9d4a4c198aa124592552c66e2a3e6d130b6486eb /test/rubygems/test_deprecate.rb
parenta46841612c846f00f31ff63d886620d66cdea5b3 (diff)
Revert "Manually merged from https://github.com/rubygems/rubygems/pull/2636"
31a6eaabc165d8a222e176f2c809d90622d88ec2 is obsoleted with https://github.com/rubygems/rubygems/pull/3820
Diffstat (limited to 'test/rubygems/test_deprecate.rb')
-rw-r--r--test/rubygems/test_deprecate.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/test/rubygems/test_deprecate.rb b/test/rubygems/test_deprecate.rb
index 84b1efbe41..5f8eef76cb 100644
--- a/test/rubygems/test_deprecate.rb
+++ b/test/rubygems/test_deprecate.rb
@@ -3,7 +3,6 @@ require 'rubygems/test_case'
require 'rubygems/deprecate'
class TestDeprecate < Gem::TestCase
-
def setup
super
@@ -41,7 +40,6 @@ class TestDeprecate < Gem::TestCase
end
class Thing
-
extend Gem::Deprecate
attr_accessor :message
def foo
@@ -51,11 +49,9 @@ class TestDeprecate < Gem::TestCase
@message = "bar"
end
rubygems_deprecate :foo, :bar
-
end
class OtherThing
-
extend Gem::Deprecate
attr_accessor :message
def foo
@@ -65,7 +61,6 @@ class TestDeprecate < Gem::TestCase
@message = "bar"
end
deprecate :foo, :bar, 2099, 3
-
end
def test_deprecated_method_calls_the_old_method
@@ -115,5 +110,4 @@ class TestDeprecate < Gem::TestCase
assert_match(/Thing#foo is deprecated; use bar instead\./, err)
assert_match(/on or after 2099-03-01/, err)
end
-
end