aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2019-04-19 23:13:19 +0900
committerGitHub <noreply@github.com>2019-04-19 23:13:19 +0900
commit75aeb3617153efbc2c6fd28d03f364f7c38a446a (patch)
tree431c28133a74d8c2172dcf54f9e7d380396ba804 /activesupport/test
parentf656bb301a43fe441af0039e4fafe40a7faa62f8 (diff)
parent8afdfdcfc92720162920aa6b59954ff4a1bfe831 (diff)
downloadrails-75aeb3617153efbc2c6fd28d03f364f7c38a446a.tar.gz
rails-75aeb3617153efbc2c6fd28d03f364f7c38a446a.tar.bz2
rails-75aeb3617153efbc2c6fd28d03f364f7c38a446a.zip
Merge pull request #36037 from kamipo/deprecate_methods
Refactor `ActiveSupport::Deprecation.deprecate_methods` not to expose internal methods
Diffstat (limited to 'activesupport/test')
-rw-r--r--activesupport/test/deprecation/method_wrappers_test.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/activesupport/test/deprecation/method_wrappers_test.rb b/activesupport/test/deprecation/method_wrappers_test.rb
index 18729941bc..0aa3233aab 100644
--- a/activesupport/test/deprecation/method_wrappers_test.rb
+++ b/activesupport/test/deprecation/method_wrappers_test.rb
@@ -89,12 +89,4 @@ class MethodWrappersTest < ActiveSupport::TestCase
warning = /old_method is deprecated and will be removed from Rails \d.\d \(use new_method instead\)/
assert_deprecated(warning) { assert_equal "abc", @klass.old_method }
end
-
- def test_method_with_without_deprecation_is_exposed
- ActiveSupport::Deprecation.deprecate_methods(@klass, old_method: :new_method)
-
- warning = /old_method is deprecated and will be removed from Rails \d.\d \(use new_method instead\)/
- assert_deprecated(warning) { assert_equal "abc", @klass.new.old_method_with_deprecation }
- assert_equal "abc", @klass.new.old_method_without_deprecation
- end
end