diff options
author | Guo Xiang Tan <tgx_world@hotmail.com> | 2014-11-05 23:38:02 +0800 |
---|---|---|
committer | Guo Xiang Tan <tgx_world@hotmail.com> | 2014-11-05 23:38:02 +0800 |
commit | 76f5a9afb35e52bbdc392d6fc35422e22be987c2 (patch) | |
tree | 6581a2f161bb6c435b47db72fc93fb576b8aae63 /actionpack/lib/action_dispatch | |
parent | 00ae750b23f0f9f59fd7058fc3bff043d2a04c5f (diff) | |
download | rails-76f5a9afb35e52bbdc392d6fc35422e22be987c2.tar.gz rails-76f5a9afb35e52bbdc392d6fc35422e22be987c2.tar.bz2 rails-76f5a9afb35e52bbdc392d6fc35422e22be987c2.zip |
Remove session to allow `with_routing` to be called twice.
Fixes: https://github.com/rails/rails/issues/16814
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r-- | actionpack/lib/action_dispatch/testing/integration.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/testing/integration.rb b/actionpack/lib/action_dispatch/testing/integration.rb index c300a4ea0d..fb816aa875 100644 --- a/actionpack/lib/action_dispatch/testing/integration.rb +++ b/actionpack/lib/action_dispatch/testing/integration.rb @@ -326,6 +326,10 @@ module ActionDispatch @integration_session = Integration::Session.new(app) end + def remove! # :nodoc: + @integration_session = nil + end + %w(get post patch put head delete cookies assigns xml_http_request xhr get_via_redirect post_via_redirect).each do |method| define_method(method) do |*args| |