diff options
author | Jose Fernandez <joseferper@gmail.com> | 2010-02-23 18:50:05 +0100 |
---|---|---|
committer | wycats <wycats@gmail.com> | 2010-03-05 08:52:10 -0800 |
commit | a04b44910e57387bd1bcfbd95c3a6754a08e77af (patch) | |
tree | 4bc3eac717d6ed84db64b78bed044a5ddc3222a5 /actionpack/test/template | |
parent | 8da026cb797519deac807721096fab5182ca61af (diff) | |
download | rails-a04b44910e57387bd1bcfbd95c3a6754a08e77af.tar.gz rails-a04b44910e57387bd1bcfbd95c3a6754a08e77af.tar.bz2 rails-a04b44910e57387bd1bcfbd95c3a6754a08e77af.zip |
Solved a problem that prevented render :file => work in layouts
Signed-off-by: wycats <wycats@gmail.com>
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/render_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/test/template/render_test.rb b/actionpack/test/template/render_test.rb index 338ada8b0e..6dbadc9304 100644 --- a/actionpack/test/template/render_test.rb +++ b/actionpack/test/template/render_test.rb @@ -233,6 +233,11 @@ module RenderTestCases @view.render(:file => "test/nested_layout.erb", :layout => "layouts/yield") end + def test_render_with_file_in_layout + assert_equal %(\n<title>title</title>\n\n), + @view.render(:file => "test/layout_render_file.erb") + end + if '1.9'.respond_to?(:force_encoding) def test_render_utf8_template_with_magic_comment with_external_encoding Encoding::ASCII_8BIT do |