aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2008-08-28 10:37:46 -0500
committerJoshua Peek <josh@joshpeek.com>2008-08-28 10:37:46 -0500
commitacbf2b74aa3001fb6064bba96cd0033495774357 (patch)
tree54bd7e783a063ddf359721eefd2a5566d12a9a0f /actionpack/test
parent8b6870cfae8d50a2ffd4f024d33d51aadaa6a6f7 (diff)
downloadrails-acbf2b74aa3001fb6064bba96cd0033495774357.tar.gz
rails-acbf2b74aa3001fb6064bba96cd0033495774357.tar.bz2
rails-acbf2b74aa3001fb6064bba96cd0033495774357.zip
Deprecated implicit local assignments when rendering partials
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/controller/new_render_test.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/actionpack/test/controller/new_render_test.rb b/actionpack/test/controller/new_render_test.rb
index 82919b7777..698c46f78c 100644
--- a/actionpack/test/controller/new_render_test.rb
+++ b/actionpack/test/controller/new_render_test.rb
@@ -832,8 +832,10 @@ EOS
end
def test_partial_with_implicit_local_assignment
- get :partial_with_implicit_local_assignment
- assert_equal "Hello: Marcel", @response.body
+ assert_deprecated do
+ get :partial_with_implicit_local_assignment
+ assert_equal "Hello: Marcel", @response.body
+ end
end
def test_render_missing_partial_template