diff options
author | David Trasbo <me@dtrasbo.com> | 2010-10-13 20:58:25 +0200 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2010-11-07 14:48:51 -0200 |
commit | 990f52ebd78df77d73a2187751c6e1bb6d4b6033 (patch) | |
tree | 451853a4dfd6d1c94e5b3970db8df95504f35e9f /actionpack/lib/action_dispatch/testing | |
parent | 02039e9752bcb214c2ad85859ecf47dcbb892225 (diff) | |
download | rails-990f52ebd78df77d73a2187751c6e1bb6d4b6033.tar.gz rails-990f52ebd78df77d73a2187751c6e1bb6d4b6033.tar.bz2 rails-990f52ebd78df77d73a2187751c6e1bb6d4b6033.zip |
Make cookies hash in ActionDispatch::TestProcess indifferent access [#5761 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'actionpack/lib/action_dispatch/testing')
-rw-r--r-- | actionpack/lib/action_dispatch/testing/test_process.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/testing/test_process.rb b/actionpack/lib/action_dispatch/testing/test_process.rb index c56ebc6438..16f3674164 100644 --- a/actionpack/lib/action_dispatch/testing/test_process.rb +++ b/actionpack/lib/action_dispatch/testing/test_process.rb @@ -22,7 +22,7 @@ module ActionDispatch end def cookies - @request.cookies.merge(@response.cookies) + HashWithIndifferentAccess.new(@request.cookies.merge(@response.cookies)) end def redirect_to_url |