diff options
-rw-r--r-- | actionpack/test/dispatch/cookies_test.rb | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/actionpack/test/dispatch/cookies_test.rb b/actionpack/test/dispatch/cookies_test.rb index 2a32614ca1..2eb477e472 100644 --- a/actionpack/test/dispatch/cookies_test.rb +++ b/actionpack/test/dispatch/cookies_test.rb @@ -513,8 +513,7 @@ class CookiesIntegrationTest < ActionDispatch::IntegrationTest def test_setting_cookies_raises_after_stream_back_to_client with_test_route_set do - env = {} - get '/set_cookies', nil, env + get '/set_cookies', nil, {} assert_raise(ActionDispatch::ClosedError) { request.cookie_jar['alert'] = 'alert' cookies['alert'] = 'alert' @@ -524,7 +523,6 @@ class CookiesIntegrationTest < ActionDispatch::IntegrationTest def test_setting_cookies_raises_after_stream_back_to_client_even_with_an_empty_flash with_test_route_set do - env = {} get '/dont_set_cookies', nil, {} assert_raise(ActionDispatch::ClosedError) { request.cookie_jar['alert'] = 'alert' @@ -534,8 +532,7 @@ class CookiesIntegrationTest < ActionDispatch::IntegrationTest def test_setting_permanent_cookies_raises_after_stream_back_to_client with_test_route_set do - env = {} - get '/set_cookies', nil, env + get '/set_cookies', nil, {} assert_raise(ActionDispatch::ClosedError) { request.cookie_jar.permanent['alert'] = 'alert' cookies['alert'] = 'alert' @@ -545,7 +542,6 @@ class CookiesIntegrationTest < ActionDispatch::IntegrationTest def test_setting_permanent_cookies_raises_after_stream_back_to_client_even_with_an_empty_flash with_test_route_set do - env = {} get '/dont_set_cookies', nil, {} assert_raise(ActionDispatch::ClosedError) { request.cookie_jar.permanent['alert'] = 'alert' @@ -555,8 +551,7 @@ class CookiesIntegrationTest < ActionDispatch::IntegrationTest def test_setting_signed_cookies_raises_after_stream_back_to_client with_test_route_set do - env = {} - get '/set_cookies', nil, env + get '/set_cookies', nil, {} assert_raise(ActionDispatch::ClosedError) { request.cookie_jar.signed['alert'] = 'alert' cookies['alert'] = 'alert' @@ -566,7 +561,6 @@ class CookiesIntegrationTest < ActionDispatch::IntegrationTest def test_setting_signed_cookies_raises_after_stream_back_to_client_even_with_an_empty_flash with_test_route_set do - env = {} get '/dont_set_cookies', nil, {} assert_raise(ActionDispatch::ClosedError) { request.cookie_jar.signed['alert'] = 'alert' |