Namespace
Methods
- S
- T
-
- test_rendering_with_location_should_set_header,
- test_rendering_with_object_location_should_set_header_with_url_for,
- test_rendering_xml_should_call_to_xml_if_possible,
- test_rendering_xml_should_call_to_xml_with_extra_options,
- test_should_render_formatted_xml_erb_template,
- test_should_render_xml_but_keep_custom_content_type,
- test_should_use_implicit_content_type
Instance Public methods
setup()
Link
# File actionpack/test/controller/render_xml_test.rb, line 47 def setup # enable a logger so that (e.g.) the benchmarking stuff runs, so we can get # a more accurate simulation of what happens in "real life". super @controller.logger = Logger.new(nil) @request.host = "www.nextangle.com" end
test_rendering_with_location_should_set_header()
Link
test_rendering_with_object_location_should_set_header_with_url_for()
Link
# File actionpack/test/controller/render_xml_test.rb, line 71 def test_rendering_with_object_location_should_set_header_with_url_for with_routing do |set| set.draw do resources :customers match ':controller/:action' end get :render_with_object_location assert_equal "http://www.nextangle.com/customers/1", @response.headers["Location"] end end
test_rendering_xml_should_call_to_xml_if_possible()
Link
test_rendering_xml_should_call_to_xml_with_extra_options()
Link
test_should_render_formatted_xml_erb_template()
Link
test_should_render_xml_but_keep_custom_content_type()
Link