diff options
author | Akira Matsuda <ronnie@dio.jp> | 2013-01-23 07:22:05 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2013-01-23 13:29:40 +0900 |
commit | ce0f977ae94305f9df332b7ff5e7859f3d489ebc (patch) | |
tree | f822e034608a1163a7c17672a91e179abba1975e | |
parent | 4c5c98d0d334e6bd69ea93dbcad10a70fcbfa9d4 (diff) | |
download | rails-ce0f977ae94305f9df332b7ff5e7859f3d489ebc.tar.gz rails-ce0f977ae94305f9df332b7ff5e7859f3d489ebc.tar.bz2 rails-ce0f977ae94305f9df332b7ff5e7859f3d489ebc.zip |
Test that DeprecatedConstantProxy does not warn when accessing its class
-rw-r--r-- | activesupport/test/deprecation_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activesupport/test/deprecation_test.rb b/activesupport/test/deprecation_test.rb index 6689c1f11d..9616e42f44 100644 --- a/activesupport/test/deprecation_test.rb +++ b/activesupport/test/deprecation_test.rb @@ -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 |