aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/render_test.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2008-12-04 17:20:51 -0600
committerJoshua Peek <josh@joshpeek.com>2008-12-04 17:20:51 -0600
commit148aff2097890a81e874a7c60bae5fa3b2a4d1fd (patch)
tree63df01cf33c7cc78958e6b192998b0259dda5892 /actionpack/test/template/render_test.rb
parentab211bf592f52fbde7853961030046ea1d387851 (diff)
downloadrails-148aff2097890a81e874a7c60bae5fa3b2a4d1fd.tar.gz
rails-148aff2097890a81e874a7c60bae5fa3b2a4d1fd.tar.bz2
rails-148aff2097890a81e874a7c60bae5fa3b2a4d1fd.zip
Set template_format to html inside rjs templates so renders within it default to html.
Diffstat (limited to 'actionpack/test/template/render_test.rb')
-rw-r--r--actionpack/test/template/render_test.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/actionpack/test/template/render_test.rb b/actionpack/test/template/render_test.rb
index 9e827abbca..0387a11de2 100644
--- a/actionpack/test/template/render_test.rb
+++ b/actionpack/test/template/render_test.rb
@@ -137,12 +137,6 @@ module RenderTestCases
end
# TODO: The reason for this test is unclear, improve documentation
- def test_render_js_partial_and_fallback_to_erb_layout
- @view.template_format = :js
- assert_equal "Before (Josh)\n\nAfter", @view.render(:partial => "test/layout_for_partial", :locals => { :name => "Josh" })
- end
-
- # TODO: The reason for this test is unclear, improve documentation
def test_render_missing_xml_partial_and_raise_missing_template
@view.template_format = :xml
assert_raise(ActionView::MissingTemplate) { @view.render(:partial => "test/layout_for_partial") }