diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-23 16:36:43 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-23 16:36:43 -0700 |
commit | a682b44e70ee0cbf21b486450ebaa624ef4446c4 (patch) | |
tree | cd7e3bb2f714729cdef24ddd3cca1c2970431533 /actionpack/lib/action_controller | |
parent | f038ed2d2a65da8532e719eff97f985a5f9073ad (diff) | |
download | rails-a682b44e70ee0cbf21b486450ebaa624ef4446c4.tar.gz rails-a682b44e70ee0cbf21b486450ebaa624ef4446c4.tar.bz2 rails-a682b44e70ee0cbf21b486450ebaa624ef4446c4.zip |
convert more `@env` access to get / set header
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/test_case.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/test_case.rb b/actionpack/lib/action_controller/test_case.rb index e012fa617e..cf306e9a9c 100644 --- a/actionpack/lib/action_controller/test_case.rb +++ b/actionpack/lib/action_controller/test_case.rb @@ -473,7 +473,7 @@ module ActionController self.cookies.update @request.cookies @request.env['HTTP_COOKIE'] = cookies.to_header - @request.env['action_dispatch.cookies'] = nil + @request.delete_header 'action_dispatch.cookies' @request = TestRequest.new scrub_env!(@request.env), @request.session @response = build_response @response_klass |