diff options
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/render_test.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/actionpack/test/controller/render_test.rb b/actionpack/test/controller/render_test.rb index fe59035cf4..99e73abd3e 100644 --- a/actionpack/test/controller/render_test.rb +++ b/actionpack/test/controller/render_test.rb @@ -30,7 +30,11 @@ class TestController < ActionController::Base def render_action_hello_world render_action "hello_world" end - + + def render_action_hello_world_with_symbol + render_action :hello_world + end + def render_text_hello_world render_text "hello world" end @@ -137,6 +141,11 @@ class RenderTest < Test::Unit::TestCase assert_equal "test/hello_world", process_request.template.first_render end + def test_do_with_render_action_with_symbol + @request.action = "render_action_hello_world_with_symbol" + assert_equal "test/hello_world", process_request.template.first_render + end + def test_do_with_render_text @request.action = "render_text_hello_world" assert_equal "hello world", process_request.body |