]> git.openstreetmap.org Git - rails.git/blobdiff - test/integration/user_login_test.rb
Fix rubocop lint issues
[rails.git] / test / integration / user_login_test.rb
index 10c0f63b88558a50fd92d27dfb8e300a6ecefa59..83322c76c3dfdfb1b941049452af9359369a40ea 100644 (file)
@@ -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!