diff options
author | Nick Sutterer <apotonick@gmail.com> | 2011-09-22 23:51:44 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-09-23 00:36:14 +0200 |
commit | 2e3eb2560b7686a633d6de35c4cd9131504aee38 (patch) | |
tree | d9d77ff6e83258279d8a2619257a9aa455aaa4b9 /actionpack/test/template | |
parent | f8e6664d8647acf11c8f98e00ec5a23326be5d19 (diff) | |
download | rails-2e3eb2560b7686a633d6de35c4cd9131504aee38.tar.gz rails-2e3eb2560b7686a633d6de35c4cd9131504aee38.tar.bz2 rails-2e3eb2560b7686a633d6de35c4cd9131504aee38.zip |
Allow both sym and array for details options in #render. using LC#registered_details to extract options.
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/render_test.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/test/template/render_test.rb b/actionpack/test/template/render_test.rb index 634e1cdd9f..5637f3f42e 100644 --- a/actionpack/test/template/render_test.rb +++ b/actionpack/test/template/render_test.rb @@ -36,6 +36,7 @@ module RenderTestCases def test_render_file_with_format assert_equal "<h1>No Comment</h1>", @view.render(:file => "comments/empty", :formats => [:html]) assert_equal "<error>No Comment</error>", @view.render(:file => "comments/empty", :formats => [:xml]) + assert_equal "<error>No Comment</error>", @view.render(:file => "comments/empty", :formats => :xml) end def test_render_template_with_format @@ -45,6 +46,7 @@ module RenderTestCases def test_render_file_with_locale assert_equal "<h1>Kein Kommentar</h1>", @view.render(:file => "comments/empty", :locale => [:de]) + assert_equal "<h1>Kein Kommentar</h1>", @view.render(:file => "comments/empty", :locale => :de) end def test_render_template_with_locale @@ -53,6 +55,7 @@ module RenderTestCases def test_render_file_with_handlers assert_equal "<h1>No Comment</h1>\n", @view.render(:file => "comments/empty", :handlers => [:builder]) + assert_equal "<h1>No Comment</h1>\n", @view.render(:file => "comments/empty", :handlers => :builder) end def test_render_template_with_handlers |