diff options
author | José Valim <jose.valim@gmail.com> | 2010-01-21 12:12:10 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-21 12:12:10 +0100 |
commit | dcb8b64975832ac75d92104da3c95876e56eec66 (patch) | |
tree | d06615e0be1de48311fff5f4ac37c423e8bf9da6 /actionpack/test/abstract | |
parent | 48dc1ae309d6356991370b9ed4aa9efb25ec9f8d (diff) | |
download | rails-dcb8b64975832ac75d92104da3c95876e56eec66.tar.gz rails-dcb8b64975832ac75d92104da3c95876e56eec66.tar.bz2 rails-dcb8b64975832ac75d92104da3c95876e56eec66.zip |
Add shortcut test to abstract/render_test.rb
Diffstat (limited to 'actionpack/test/abstract')
-rw-r--r-- | actionpack/test/abstract/render_test.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/actionpack/test/abstract/render_test.rb b/actionpack/test/abstract/render_test.rb index be0478b638..4bec44c9ae 100644 --- a/actionpack/test/abstract/render_test.rb +++ b/actionpack/test/abstract/render_test.rb @@ -33,6 +33,10 @@ module AbstractController render end + def shortcut + render "template" + end + def template_name render :_template_name => :template_name end @@ -73,6 +77,11 @@ module AbstractController assert_equal "With Default", @controller.response_body end + def test_render_template_through_shortcut + @controller.process(:shortcut) + assert_equal "With Template", @controller.response_body + end + def test_render_template_name @controller.process(:template_name) assert_equal "With Template Name", @controller.response_body |