From ce0f977ae94305f9df332b7ff5e7859f3d489ebc Mon Sep 17 00:00:00 2001
From: Akira Matsuda <ronnie@dio.jp>
Date: Wed, 23 Jan 2013 07:22:05 +0900
Subject: Test that DeprecatedConstantProxy does not warn when accessing its
 class

---
 activesupport/test/deprecation_test.rb | 1 +
 1 file changed, 1 insertion(+)

(limited to 'activesupport')

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
-- 
cgit v1.2.3