rails/actionpack/test
Hartley McGuire 060887d4c5
Fix IntegrationTest not following Rack SPEC
Previously, ActionDispatch::IntegrationTest would always set
CONTENT_TYPE on the request whether or not the value being set was a
string or nil. However, Rack SPEC requires that if CONTENT_TYPE is set,
it must be a string.

Since the request_encoder can return nil for #content_type (and the
IdentityEncoder always will), IntegrationTest must check before it sets
the CONTENT_TYPE value.

A Rack::Lint test has been added to prevent regressions. Additionally,
it will make changes needed for Rack 3 more obvious when the time comes.
2022-12-30 16:19:25 -05:00
..
abstract Raise error when callback's only/unless symbols aren't methods 2021-12-14 15:22:08 -05:00
assertions Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
controller Fix IntegrationTest not following Rack SPEC 2022-12-30 16:19:25 -05:00
dispatch Merge pull request #46792 from codeminator/fix-flaky-tests 2022-12-27 17:45:33 +10:30
fixtures Fix word case. html -> HTML 2022-09-18 04:21:22 +10:00
journey Add ActionDispatch.deprecator 2022-10-27 17:11:02 -05:00
lib Include layout when rendering objects from controllers 2020-10-14 11:49:45 -06:00
routing Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
support Introduce Journey::Ast to avoid extra ast walks 2021-07-29 16:23:11 -04:00
abstract_unit.rb Add ActionDispatch.deprecator 2022-10-27 17:11:02 -05:00