Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preserve content_type for unauthenticated tests
In Rails 4, for unauthenticated controller tests which trigger the failure app, ensure that the simulated failure response includes a content_type (broken in bb44d42). This works in Rails5, which parses the content-type header on-demand, but not in Rails4 which requires setting the response's content_type explicitly. Fixes #4783.
- Loading branch information
Gordon McNaughton
committed
Feb 26, 2018
1 parent
6bda962
commit 3e23371
Showing
2 changed files
with
6 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters