diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-06 16:40:19 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-06 16:40:19 -0300 |
commit | adc10d2dc523ee1480e3b9d31ad2e264ee235bf4 (patch) | |
tree | 076f30fe6e6338fb692fb5a6b9f025db762c5a01 /actionview/test/actionpack/controller/render_test.rb | |
parent | daaa21bc7d20f2e4ff451637423a25ff2d5e75c7 (diff) | |
parent | 176b1b1ff6f1370531a55cb7b84d2c83d0beb157 (diff) | |
download | rails-adc10d2dc523ee1480e3b9d31ad2e264ee235bf4.tar.gz rails-adc10d2dc523ee1480e3b9d31ad2e264ee235bf4.tar.bz2 rails-adc10d2dc523ee1480e3b9d31ad2e264ee235bf4.zip |
Merge pull request #14998 from arthurnn/tests_for_process_return
Ensure that .process return the method return
Diffstat (limited to 'actionview/test/actionpack/controller/render_test.rb')
-rw-r--r-- | actionview/test/actionpack/controller/render_test.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/actionview/test/actionpack/controller/render_test.rb b/actionview/test/actionpack/controller/render_test.rb index 45b8049b83..ab7b961ed2 100644 --- a/actionview/test/actionpack/controller/render_test.rb +++ b/actionview/test/actionpack/controller/render_test.rb @@ -720,6 +720,11 @@ class RenderTest < ActionController::TestCase assert_equal "Elastica", @response.body end + def test_render_process + get :render_action_hello_world_as_string + assert_equal ["Hello world!"], @controller.process(:render_action_hello_world_as_string) + end + # :ported: def test_render_from_variable get :render_hello_world_from_variable @@ -1332,4 +1337,3 @@ class RenderTest < ActionController::TestCase assert_equal "Before (Anthony)\nInside from partial (Anthony)\nAfter\nBefore (David)\nInside from partial (David)\nAfter\nBefore (Ramm)\nInside from partial (Ramm)\nAfter", @response.body end end - |