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
Andrew White 558336ee2a Commit flash changes when using a redirect route.
In ca324a0 the flash middleware was effectively removed by its
constructor returning the app it was passed and the `commit_flash`
call was moved to the `ActionController::Metal#dispatch` method.
This broke any redirect routes that modified the flash because the
redirect happens before `dispatch` gets called.

To fix it, this commit adds a `commit_flash` call in the `serve`
method of `ActionDispatch::Routing::Redirect`.

Fixes #27992.
2017-02-25 17:07:07 +00:00
..
abstract Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
assertions Improve assert_response helper 2016-09-14 11:30:09 -04:00
controller Add more missing requires 2017-02-22 14:05:37 +00:00
dispatch Commit flash changes when using a redirect route. 2017-02-25 17:07:07 +00:00
fixtures Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
journey Properly escape test names 2017-02-02 19:58:17 +09:00
lib/controller class Foo < Struct.new(:x) creates an extra unneeded anonymous class 2017-01-13 15:13:47 +09:00
routing
tmp
abstract_unit.rb Turn system testing into it's own gem and rename 2017-02-20 15:07:33 -05:00