diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-08-07 06:10:34 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-08-07 06:10:34 +0000 |
commit | 2bf8f2307e3f13a7b6cf703cdb954cc9a3f5244d (patch) | |
tree | d4f11b074e0aa8e2c052f7e99f7b151bc048b2bf /activesupport/test | |
parent | cfd9e05a2edf53bc92220cd91795a6b8f1029630 (diff) | |
download | rails-2bf8f2307e3f13a7b6cf703cdb954cc9a3f5244d.tar.gz rails-2bf8f2307e3f13a7b6cf703cdb954cc9a3f5244d.tar.bz2 rails-2bf8f2307e3f13a7b6cf703cdb954cc9a3f5244d.zip |
Don't warn when the deprecated ivar proxy is instantiated.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4698 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/deprecation_test.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/activesupport/test/deprecation_test.rb b/activesupport/test/deprecation_test.rb index 48506656a5..319bd231d7 100644 --- a/activesupport/test/deprecation_test.rb +++ b/activesupport/test/deprecation_test.rb @@ -68,9 +68,8 @@ class DeprecationTest < Test::Unit::TestCase def test_deprecated_instance_variable_proxy assert_not_deprecated { @dtc.request.size } - assert_deprecated('Using @request directly is deprecated - call request instead.') do - assert_equal @dtc.request.size, @dtc.old_request.size - assert_equal @dtc.request.to_s, @dtc.old_request.to_s - end + warning = 'Using @request directly is deprecated - call request instead.' + assert_deprecated(warning) { assert_equal @dtc.request.size, @dtc.old_request.size } + assert_deprecated(warning) { assert_equal @dtc.request.to_s, @dtc.old_request.to_s } end end |