aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/deprecation/deprecated_base_methods_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test/controller/deprecation/deprecated_base_methods_test.rb')
-rw-r--r--actionpack/test/controller/deprecation/deprecated_base_methods_test.rb13
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