diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-09-03 23:02:56 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-09-03 23:02:56 +0000 |
commit | 5048aa9831a4ecda14eeb02f3a58157efa8f608f (patch) | |
tree | 29e5a7ea6368a87b692c16124d6f1b86ead8fef6 /actionpack/test/controller/deprecation/deprecated_base_methods_test.rb | |
parent | 315603e2be38042b7dd42cb460cd8d5cc66a0b2e (diff) | |
download | rails-5048aa9831a4ecda14eeb02f3a58157efa8f608f.tar.gz rails-5048aa9831a4ecda14eeb02f3a58157efa8f608f.tar.bz2 rails-5048aa9831a4ecda14eeb02f3a58157efa8f608f.zip |
Deprecated old render parameter calls
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4947 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/controller/deprecation/deprecated_base_methods_test.rb')
-rw-r--r-- | actionpack/test/controller/deprecation/deprecated_base_methods_test.rb | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/actionpack/test/controller/deprecation/deprecated_base_methods_test.rb b/actionpack/test/controller/deprecation/deprecated_base_methods_test.rb index 24b4a5d9f5..3d5f6606bc 100644 --- a/actionpack/test/controller/deprecation/deprecated_base_methods_test.rb +++ b/actionpack/test/controller/deprecation/deprecated_base_methods_test.rb @@ -7,7 +7,7 @@ class DeprecatedBaseMethodsTest < Test::Unit::TestCase end def deprecated_render_parameters - # render "" + render "fun/games/hello_world" end def home_url(greeting) @@ -17,6 +17,8 @@ class DeprecatedBaseMethodsTest < Test::Unit::TestCase def rescue_action(e) raise e end end + Target.template_root = File.dirname(__FILE__) + "/../../fixtures" + def setup @request = ActionController::TestRequest.new @response = ActionController::TestResponse.new @@ -27,6 +29,15 @@ class DeprecatedBaseMethodsTest < Test::Unit::TestCase assert_deprecated("url_for(:home_url)") do get :deprecated_symbol_parameter_to_url_for end + assert_redirected_to "http://example.com/superstars" end + + def test_deprecated_render_parameters + assert_deprecated("render('fun/games/hello_world')") do + get :deprecated_render_parameters + end + + assert_equal "Living in a nested world", @response.body + end end |