class ActionPackHeaderTest
Public Instance Methods
test_render_text_with_custom_content_type()
click to toggle source
# File actionpack/test/controller/action_pack_assertions_test.rb, line 489 def test_render_text_with_custom_content_type get :render_text_with_custom_content_type assert_equal "application/rss+xml; charset=utf-8", @response.headers["Content-Type"] end
test_rendering_xml_respects_content_type()
click to toggle source
# File actionpack/test/controller/action_pack_assertions_test.rb, line 479 def test_rendering_xml_respects_content_type process :hello_xml_world_pdf assert_equal("application/pdf; charset=utf-8", @response.headers["Content-Type"]) end
test_rendering_xml_respects_content_type_when_set_in_the_header()
click to toggle source
# File actionpack/test/controller/action_pack_assertions_test.rb, line 484 def test_rendering_xml_respects_content_type_when_set_in_the_header process :hello_xml_world_pdf_header assert_equal("application/pdf; charset=utf-8", @response.headers["Content-Type"]) end
test_rendering_xml_sets_content_type()
click to toggle source
# File actionpack/test/controller/action_pack_assertions_test.rb, line 474 def test_rendering_xml_sets_content_type process :hello_xml_world assert_equal("application/xml; charset=utf-8", @response.headers["Content-Type"]) end