From ed042436295f0f55dc57c582d0b94628e6376e97 Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Wed, 6 Apr 2011 19:15:33 -0300 Subject: Delete useless env variable --- actionpack/test/dispatch/cookies_test.rb | 12 +++--------- 1 file 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' -- cgit v1.2.3