diff options
author | Eileen M. Uchitelle <eileencodes@users.noreply.github.com> | 2017-01-23 16:33:42 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-23 16:33:42 -0500 |
commit | c6f9f8c28a720ad4ec7cf3613dddfa451d5968e2 (patch) | |
tree | 4a880692055af920da504e56e7f213c849b3e1e9 /actionpack/lib | |
parent | c309073c7476f50dfb1e796d058580f176101c36 (diff) | |
parent | 13c7f2b537b580beb5f3df29b8396d2157bdfdab (diff) | |
download | rails-c6f9f8c28a720ad4ec7cf3613dddfa451d5968e2.tar.gz rails-c6f9f8c28a720ad4ec7cf3613dddfa451d5968e2.tar.bz2 rails-c6f9f8c28a720ad4ec7cf3613dddfa451d5968e2.zip |
Merge pull request #27775 from domcleal/27774-format-reset
Delete PATH_INFO after each controller test request
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/test_case.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/test_case.rb b/actionpack/lib/action_controller/test_case.rb index 7b620ac95e..7229c67f30 100644 --- a/actionpack/lib/action_controller/test_case.rb +++ b/actionpack/lib/action_controller/test_case.rb @@ -534,6 +534,7 @@ module ActionController @request.delete_header "HTTP_ACCEPT" end @request.query_string = "" + @request.env.delete "PATH_INFO" @response.sent! end |