Skip to content
Browse files

Delete useless arguments

  • Loading branch information...
1 parent ed04243 commit 9f765f4e0990742519b91d759a6b4374d940ab98 @spastorino spastorino committed
Showing with 6 additions and 6 deletions.
  1. +6 −6 actionpack/test/dispatch/cookies_test.rb
View
12 actionpack/test/dispatch/cookies_test.rb
@@ -513,7 +513,7 @@ def set_cookies
def test_setting_cookies_raises_after_stream_back_to_client
with_test_route_set do
- get '/set_cookies', nil, {}
+ get '/set_cookies'
assert_raise(ActionDispatch::ClosedError) {
request.cookie_jar['alert'] = 'alert'
cookies['alert'] = 'alert'
@@ -523,7 +523,7 @@ 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
- get '/dont_set_cookies', nil, {}
+ get '/dont_set_cookies'
assert_raise(ActionDispatch::ClosedError) {
request.cookie_jar['alert'] = 'alert'
}
@@ -532,7 +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
- get '/set_cookies', nil, {}
+ get '/set_cookies'
assert_raise(ActionDispatch::ClosedError) {
request.cookie_jar.permanent['alert'] = 'alert'
cookies['alert'] = 'alert'
@@ -542,7 +542,7 @@ 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
- get '/dont_set_cookies', nil, {}
+ get '/dont_set_cookies'
assert_raise(ActionDispatch::ClosedError) {
request.cookie_jar.permanent['alert'] = 'alert'
}
@@ -551,7 +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
- get '/set_cookies', nil, {}
+ get '/set_cookies'
assert_raise(ActionDispatch::ClosedError) {
request.cookie_jar.signed['alert'] = 'alert'
cookies['alert'] = 'alert'
@@ -561,7 +561,7 @@ 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
- get '/dont_set_cookies', nil, {}
+ get '/dont_set_cookies'
assert_raise(ActionDispatch::ClosedError) {
request.cookie_jar.signed['alert'] = 'alert'
}

0 comments on commit 9f765f4

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