Skip to content

Commit

Permalink
Test that DeprecatedConstantProxy does not warn when accessing its class
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed Jan 23, 2013
1 parent 4c5c98d commit ce0f977
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions activesupport/test/deprecation_test.rb
Expand Up @@ -144,6 +144,7 @@ def test_deprecated_instance_variable_proxy_shouldnt_warn_on_inspect
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
Expand Down

0 comments on commit ce0f977

Please sign in to comment.