Skip to content

Commit fdb7412

Browse files
committed
Fix test to keep behavior the same after rails#48397
This test was failing because the parameter `a` in the accept header is now being correctly extracted as a mime type. This test was expecting that Rails would extract it an an empty accept header, that will only happen now if the `q` parameter that has special meaning in used.
1 parent 768ebf9 commit fdb7412

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

actionview/test/actionpack/controller/render_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1083,7 +1083,7 @@ def test_should_render_formatted_html_erb_template
10831083
end
10841084

10851085
def test_should_render_formatted_html_erb_template_with_bad_accepts_header
1086-
@request.env["HTTP_ACCEPT"] = "; a=dsf"
1086+
@request.env["HTTP_ACCEPT"] = "; q=dsf"
10871087
get :formatted_xml_erb
10881088
assert_equal "<test>passed formatted HTML erb</test>", @response.body
10891089
end

0 commit comments

Comments
 (0)