diff options
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 |