aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2011-04-06 19:15:33 -0300
committerSantiago Pastorino <santiago@wyeworks.com>2011-04-06 19:15:33 -0300
commited042436295f0f55dc57c582d0b94628e6376e97 (patch)
tree93b30c836fdd912c9e86de755f85cf57619054bc
parent0d455673620a1646b1149e1e4a185143d46bb7b8 (diff)
downloadrails-ed042436295f0f55dc57c582d0b94628e6376e97.tar.gz
rails-ed042436295f0f55dc57c582d0b94628e6376e97.tar.bz2
rails-ed042436295f0f55dc57c582d0b94628e6376e97.zip
Delete useless env variable
-rw-r--r--actionpack/test/dispatch/cookies_test.rb12
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'