mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Test that DeprecatedConstantProxy does not warn when accessing its class
This commit is contained in:
parent
4c5c98d0d3
commit
ce0f977ae9
1 changed files with 1 additions and 0 deletions
|
@ -144,6 +144,7 @@ class DeprecationTest < ActiveSupport::TestCase
|
|||
def test_deprecated_constant_proxy
|
||||
assert_not_deprecated { Deprecatee::B::C }
|
||||
assert_deprecated('Deprecatee::A') { assert_equal Deprecatee::B::C, Deprecatee::A }
|
||||
assert_not_deprecated { assert_equal Deprecatee::B::C.class, Deprecatee::A.class }
|
||||
end
|
||||
|
||||
def test_assert_deprecation_without_match
|
||||
|
|
Loading…
Reference in a new issue