aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test/actionpack/controller/render_test.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-05-06 16:40:19 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-05-06 16:40:19 -0300
commitadc10d2dc523ee1480e3b9d31ad2e264ee235bf4 (patch)
tree076f30fe6e6338fb692fb5a6b9f025db762c5a01 /actionview/test/actionpack/controller/render_test.rb
parentdaaa21bc7d20f2e4ff451637423a25ff2d5e75c7 (diff)
parent176b1b1ff6f1370531a55cb7b84d2c83d0beb157 (diff)
downloadrails-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.rb6
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
-