diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-12-20 21:28:31 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-12-20 21:28:31 +0000 |
commit | 01452feff1ab4e06ed41cd093bb8a140cd6b2cb6 (patch) | |
tree | fac71a0165bcfc38ff5ca0b9a0f715e1bca8e17e /activesupport/test | |
parent | a8b53f1dbbfde4385d842e6f4b667bf7db638409 (diff) | |
download | rails-01452feff1ab4e06ed41cd093bb8a140cd6b2cb6.tar.gz rails-01452feff1ab4e06ed41cd093bb8a140cd6b2cb6.tar.bz2 rails-01452feff1ab4e06ed41cd093bb8a140cd6b2cb6.zip |
DeprecatedInstanceVariable#inspect doesn't warn since test/unit, error logs, and others use it for diagnostics.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5763 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/deprecation_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activesupport/test/deprecation_test.rb b/activesupport/test/deprecation_test.rb index 5699ef78d6..9eb9e9253a 100644 --- a/activesupport/test/deprecation_test.rb +++ b/activesupport/test/deprecation_test.rb @@ -79,6 +79,10 @@ class DeprecationTest < Test::Unit::TestCase assert_deprecated('@request.to_s') { assert_equal @dtc.request.to_s, @dtc.old_request.to_s } end + def test_deprecated_instance_variable_proxy_shouldnt_warn_on_inspect + assert_not_deprecated { assert_equal @dtc.request.inspect, @dtc.old_request.inspect } + end + def test_assert_deprecation_without_match assert_deprecated do @dtc.partially |