Revert "Add test case which check content type when rendering rjs" partial in html template" rendering rjs in html doesn't make sense, it would just output javascript into the template, no script tag

This reverts commit dc251389d1ab4303b80a22642f4241940b73cbe7.
This commit is contained in:
Santiago Pastorino 2010-04-15 21:37:11 -03:00
parent 8a91ccf976
commit 462a7b45f6

@ -23,9 +23,7 @@ class ImpliedController < ActionController::Base
"content_type/implied/i_am_html_erb.html.erb" => "Hello world!",
"content_type/implied/i_am_xml_erb.xml.erb" => "<xml>Hello world!</xml>",
"content_type/implied/i_am_html_builder.html.builder" => "xml.p 'Hello'",
"content_type/implied/i_am_xml_builder.xml.builder" => "xml.awesome 'Hello'",
"content_type/implied/i_am_rjs_in_html.html.erb" => "<%= render 'i_am_rjs_partial' %>",
"content_type/implied/_i_am_rjs_partial.js.rjs" => ""
"content_type/implied/i_am_xml_builder.xml.builder" => "xml.awesome 'Hello'"
)]
def i_am_html_erb() end
@ -93,12 +91,6 @@ class ImpliedContentTypeTest < Rack::TestCase
assert_header "Content-Type", "application/xml; charset=utf-8"
end
test "sets Content-Type as text/html when rendering *.html.erb with a RJS partial" do
get "/content_type/implied/i_am_rjs_in_html"
assert_header "Content-Type", "text/html; charset=utf-8"
end
end
class ExplicitCharsetTest < Rack::TestCase