Fix rubocop lint issues
This commit is contained in:
parent
ef7f3d800c
commit
baf10cd392
40 changed files with 105 additions and 150 deletions
|
@ -171,7 +171,6 @@ class UserCreationTest < ActionDispatch::IntegrationTest
|
|||
def test_user_create_openid_failure
|
||||
new_email = "newtester-openid2@osm.org"
|
||||
display_name = "new_tester-openid2"
|
||||
password = "testtest2"
|
||||
assert_difference('User.count', 0) do
|
||||
assert_difference('ActionMailer::Base.deliveries.size', 0) do
|
||||
post "/user/new",
|
||||
|
@ -190,7 +189,6 @@ class UserCreationTest < ActionDispatch::IntegrationTest
|
|||
def test_user_create_openid_redirect
|
||||
new_email = "redirect_tester_openid@osm.org"
|
||||
display_name = "redirect_tester_openid"
|
||||
password = ""
|
||||
# nothing special about this page, just need a protected page to redirect back to.
|
||||
referer = "/traces/mine"
|
||||
assert_difference('User.count') do
|
||||
|
|
|
@ -292,8 +292,7 @@ class UserLoginTest < ActionDispatch::IntegrationTest
|
|||
post '/login', 'openid_url' => "http://localhost:1123/john.doe?openid.success=true", :referer => "/history"
|
||||
assert_response :redirect
|
||||
|
||||
res = openid_request(@response.redirect_url)
|
||||
res2 = post '/login', res
|
||||
post '/login', openid_request(@response.redirect_url)
|
||||
|
||||
assert_response :redirect
|
||||
follow_redirect!
|
||||
|
@ -311,8 +310,7 @@ class UserLoginTest < ActionDispatch::IntegrationTest
|
|||
post '/login', 'openid_url' => "http://localhost:1123/john.doe", :referer => "/diary"
|
||||
assert_response :redirect
|
||||
|
||||
res = openid_request(@response.redirect_url)
|
||||
post '/login', res
|
||||
post '/login', openid_request(@response.redirect_url)
|
||||
|
||||
assert_response :redirect
|
||||
follow_redirect!
|
||||
|
@ -361,7 +359,7 @@ class UserLoginTest < ActionDispatch::IntegrationTest
|
|||
assert_response :redirect
|
||||
|
||||
res = openid_request(@response.redirect_url)
|
||||
res2 = post '/login', res
|
||||
post '/login', res
|
||||
|
||||
assert_response :redirect
|
||||
follow_redirect!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue