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
eileencodes af1680f51c Fix GET JSON integration test request to use method override
When a `GET` request is sent `as: :json` in an integration test the test
should use Rack's method override to change to a post request so the
paramters are included in the postdata. Otherwise it will not encode the
parameters correctly for the integration test.

Because integration test sets up it's own middleware,
`Rack::MethodOverride` needs to be included in the integration tests as
well.

`headers ||= {}` was moved so that headers are never nil. They should
default to a hash.

Fixes #26033

[Eileen M. Uchitelle & Aaron Patterson]
2016-08-05 15:43:39 -04:00
..
abstract Revert "ActionController::Base#process() now only takes an action name" 2015-10-29 16:18:27 -07:00
assertions Support for unified Integer class in Ruby 2.4+ 2016-05-18 21:58:51 -07:00
controller Fix GET JSON integration test request to use method override 2016-08-05 15:43:39 -04:00
dispatch Merge pull request #25913 from chrisarcand/fix-keyed-defaults-with-root 2016-07-27 20:28:54 -03:00
fixtures Fix adding implicitly rendered namespaced template digests to ETags 2016-07-13 15:07:49 -04:00
journey Deprecate :controller and :action path parameters 2016-03-01 08:48:53 +00:00
lib/controller
routing
tmp
abstract_unit.rb Fix GET JSON integration test request to use method override 2016-08-05 15:43:39 -04:00