-
Ruben Izmailyan authored
If an ActionController::TestCase test sets the request content type to nil, Rails raises an obscure “undefined method 'to_sym' for nil” NoMethodError. This commit fixes the code so a clearer “Unknown Content-Type” error is raised. Co-authored-by:
Jerome Dalbert <jerome.dalbert@gmail.com>
Ruben Izmailyan authoredIf an ActionController::TestCase test sets the request content type to nil, Rails raises an obscure “undefined method 'to_sym' for nil” NoMethodError. This commit fixes the code so a clearer “Unknown Content-Type” error is raised. Co-authored-by:
Jerome Dalbert <jerome.dalbert@gmail.com>
Loading