Skip to content
Browse files

Delete useless env variable

  • Loading branch information...
1 parent 0d45567 commit ed042436295f0f55dc57c582d0b94628e6376e97 @spastorino spastorino committed Apr 6, 2011
Showing with 3 additions and 9 deletions.
  1. +3 −9 actionpack/test/dispatch/cookies_test.rb
View
12 actionpack/test/dispatch/cookies_test.rb
@@ -513,8 +513,7 @@ def set_cookies
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 @@ def test_setting_cookies_raises_after_stream_back_to_client
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 @@ def test_setting_cookies_raises_after_stream_back_to_client_even_with_an_empty_f
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 @@ def test_setting_permanent_cookies_raises_after_stream_back_to_client
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 @@ def test_setting_permanent_cookies_raises_after_stream_back_to_client_even_with_
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 @@ def test_setting_signed_cookies_raises_after_stream_back_to_client
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'

0 comments on commit ed04243

Please sign in to comment.
Something went wrong with that request. Please try again.