1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/test/controller/new_base
Armand du Plessis c62abed8ca Collapsed dual checks (one for content headers and one for content) into a single check.
Rails includes a single character body to a head(:no_content) response to work around an old Safari bug where headers were ignored if no body sent.

This patch brings the behavior slightly closer to spec if :no_content/204 is explicity requested via a head only response.

Status comparison done on symbolic and numeric values

Not returning any content when responding with head and limited to a status code that explicitly states no content will be returned - 100..199, 204, 205, 304.
2012-08-02 16:01:08 -07:00
..
bare_metal_test.rb Collapsed dual checks (one for content headers and one for content) into a single check. 2012-08-02 16:01:08 -07:00
base_test.rb Corrected some typos and American vs. Queen's English issues 2011-05-29 12:40:24 -07:00
content_negotiation_test.rb Use Mime::Type references. 2011-02-08 14:14:26 -08:00
content_type_test.rb Remove default match without specified method 2012-04-24 22:52:26 -05:00
metal_test.rb Fixed a bunch of tests that failed in 1.9 because they assumed that a Rack response was a String. 2010-03-19 18:46:29 -07:00
middleware_test.rb added block arguments to ActionController::Metal#use 2010-09-12 07:35:54 +08:00
render_action_test.rb deprecate describe without a block. 2012-07-09 13:13:59 -07:00
render_context_test.rb Tidy up pending TODOs after discussion with Mr. Gatoz (@wycats). 2011-05-01 19:39:57 +02:00
render_file_test.rb Deprecate passing the template handler in the template name. 2011-09-22 15:37:38 +02:00
render_implicit_action_test.rb Revert to old semantics, use available_action? instead of action_method?. 2011-05-06 18:44:18 +02:00
render_layout_test.rb Fix another regression related to the layout optimization. 2011-12-08 22:56:50 +01:00
render_partial_test.rb Get rid of update_details in favor of passing details to find_template. 2011-09-22 15:03:05 +02:00
render_streaming_test.rb Remove unnecessary in HTML 5 type attribute with default value 2012-04-05 15:32:37 +04:00
render_template_test.rb html_escape should escape single quotes 2012-07-31 22:26:52 -03:00
render_test.rb Remove default match without specified method 2012-04-24 22:52:26 -05:00
render_text_test.rb deprecate describe without a block. 2012-07-09 13:13:59 -07:00
render_xml_test.rb Deletes trailing whitespaces (over text files only find * -type f -exec sed 's/[ \t]*$//' -i {} \;) 2010-08-14 04:12:33 -03:00