aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/deprecation_test.rb
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2013-01-23 07:22:05 +0900
committerAkira Matsuda <ronnie@dio.jp>2013-01-23 13:29:40 +0900
commitce0f977ae94305f9df332b7ff5e7859f3d489ebc (patch)
treef822e034608a1163a7c17672a91e179abba1975e /activesupport/test/deprecation_test.rb
parent4c5c98d0d334e6bd69ea93dbcad10a70fcbfa9d4 (diff)
downloadrails-ce0f977ae94305f9df332b7ff5e7859f3d489ebc.tar.gz
rails-ce0f977ae94305f9df332b7ff5e7859f3d489ebc.tar.bz2
rails-ce0f977ae94305f9df332b7ff5e7859f3d489ebc.zip
Test that DeprecatedConstantProxy does not warn when accessing its class
Diffstat (limited to 'activesupport/test/deprecation_test.rb')
-rw-r--r--activesupport/test/deprecation_test.rb1
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