From 148aff2097890a81e874a7c60bae5fa3b2a4d1fd Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Thu, 4 Dec 2008 17:20:51 -0600 Subject: Set template_format to html inside rjs templates so renders within it default to html. --- actionpack/test/controller/render_test.rb | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'actionpack/test/controller/render_test.rb') diff --git a/actionpack/test/controller/render_test.rb b/actionpack/test/controller/render_test.rb index 795ad97863..c5496a9af5 100644 --- a/actionpack/test/controller/render_test.rb +++ b/actionpack/test/controller/render_test.rb @@ -246,15 +246,6 @@ class TestController < ActionController::Base :locals => { :local_name => name } end - def helper_method_to_render_to_string(*args) - render_to_string(*args) - end - helper_method :helper_method_to_render_to_string - - def render_html_only_partial_within_inline - render :inline => "Hello world <%= helper_method_to_render_to_string :partial => 'test/partial_with_only_html_version' %>" - end - def render_implicit_html_template end @@ -948,11 +939,6 @@ class RenderTest < ActionController::TestCase assert_equal "Goodbye, Local David", @response.body end - def test_rendering_html_only_partial_within_inline_with_js - get :render_html_only_partial_within_inline, :format => :js - assert_equal "Hello world partial with only html version", @response.body - end - def test_render_in_an_rjs_template_should_pick_html_templates_when_available [:js, "js"].each do |format| assert_nothing_raised do -- cgit v1.2.3