Merge remote-tracking branch 'upstream/pull/3078'
This commit is contained in:
commit
66b5e85845
9 changed files with 63 additions and 54 deletions
|
@ -73,10 +73,10 @@ class UserHelperTest < ActionView::TestCase
|
|||
|
||||
def test_auth_button
|
||||
button = auth_button("google", "google")
|
||||
assert_equal("<a class=\"auth_button\" title=\"Login with Google\" href=\"/auth/google\"><img alt=\"Login with a Google OpenID\" class=\"rounded-lg\" src=\"/images/google.svg\" /></a>", button)
|
||||
assert_equal("<a class=\"auth_button\" title=\"Login with Google\" rel=\"nofollow\" data-method=\"post\" href=\"/auth/google\"><img alt=\"Login with a Google OpenID\" class=\"rounded-lg\" src=\"/images/google.svg\" /></a>", button)
|
||||
|
||||
button = auth_button("yahoo", "openid", :openid_url => "yahoo.com")
|
||||
assert_equal("<a class=\"auth_button\" title=\"Login with Yahoo\" href=\"/auth/openid?openid_url=yahoo\.com\"><img alt=\"Login with a Yahoo OpenID\" class=\"rounded-lg\" src=\"/images/yahoo.svg\" /></a>", button)
|
||||
assert_equal("<a class=\"auth_button\" title=\"Login with Yahoo\" rel=\"nofollow\" data-method=\"post\" href=\"/auth/openid?openid_url=yahoo\.com\"><img alt=\"Login with a Yahoo OpenID\" class=\"rounded-lg\" src=\"/images/yahoo.svg\" /></a>", button)
|
||||
end
|
||||
|
||||
private
|
||||
|
|
|
@ -243,7 +243,7 @@ class UserCreationTest < ActionDispatch::IntegrationTest
|
|||
:pass_crypt_confirmation => "" } }
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_path(:provider => "openid", :openid_url => "http://localhost:1123/new.tester", :origin => "/user/new")
|
||||
follow_redirect!
|
||||
post response.location
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_success_path(:provider => "openid", :openid_url => "http://localhost:1123/new.tester", :origin => "/user/new")
|
||||
follow_redirect!
|
||||
|
@ -289,7 +289,7 @@ class UserCreationTest < ActionDispatch::IntegrationTest
|
|||
:pass_crypt_confirmation => "" } }
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_path(:provider => "openid", :openid_url => "http://localhost:1123/new.tester", :origin => "/user/new")
|
||||
follow_redirect!
|
||||
post response.location
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_success_path(:provider => "openid", :openid_url => "http://localhost:1123/new.tester", :origin => "/user/new")
|
||||
follow_redirect!
|
||||
|
@ -328,7 +328,7 @@ class UserCreationTest < ActionDispatch::IntegrationTest
|
|||
:referer => referer }
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_path(:provider => "openid", :openid_url => "http://localhost:1123/new.tester", :origin => "/user/new")
|
||||
follow_redirect!
|
||||
post response.location
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_success_path(:provider => "openid", :openid_url => "http://localhost:1123/new.tester", :origin => "/user/new")
|
||||
follow_redirect!
|
||||
|
@ -397,7 +397,7 @@ class UserCreationTest < ActionDispatch::IntegrationTest
|
|||
:pass_crypt_confirmation => "" } }
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_path(:provider => "google", :origin => "/user/new")
|
||||
follow_redirect!
|
||||
post response.location
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_success_path(:provider => "google")
|
||||
follow_redirect!
|
||||
|
@ -442,7 +442,7 @@ class UserCreationTest < ActionDispatch::IntegrationTest
|
|||
:pass_crypt_confirmation => "" } }
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_path(:provider => "google", :origin => "/user/new")
|
||||
follow_redirect!
|
||||
post response.location
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_success_path(:provider => "google")
|
||||
follow_redirect!
|
||||
|
@ -482,7 +482,7 @@ class UserCreationTest < ActionDispatch::IntegrationTest
|
|||
:referer => referer }
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_path(:provider => "google", :origin => "/user/new")
|
||||
follow_redirect!
|
||||
post response.location
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_success_path(:provider => "google")
|
||||
follow_redirect!
|
||||
|
@ -549,7 +549,7 @@ class UserCreationTest < ActionDispatch::IntegrationTest
|
|||
:pass_crypt_confirmation => "" } }
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_path(:provider => "facebook", :origin => "/user/new")
|
||||
follow_redirect!
|
||||
post response.location
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_success_path(:provider => "facebook")
|
||||
follow_redirect!
|
||||
|
@ -594,7 +594,7 @@ class UserCreationTest < ActionDispatch::IntegrationTest
|
|||
:pass_crypt_confirmation => "" } }
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_path(:provider => "facebook", :origin => "/user/new")
|
||||
follow_redirect!
|
||||
post response.location
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_success_path(:provider => "facebook")
|
||||
follow_redirect!
|
||||
|
@ -632,7 +632,7 @@ class UserCreationTest < ActionDispatch::IntegrationTest
|
|||
:referer => referer }
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_path(:provider => "facebook", :origin => "/user/new")
|
||||
follow_redirect!
|
||||
post response.location
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_success_path(:provider => "facebook")
|
||||
follow_redirect!
|
||||
|
@ -699,7 +699,7 @@ class UserCreationTest < ActionDispatch::IntegrationTest
|
|||
:pass_crypt_confirmation => "" } }
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_path(:provider => "windowslive", :origin => "/user/new")
|
||||
follow_redirect!
|
||||
post response.location
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_success_path(:provider => "windowslive")
|
||||
follow_redirect!
|
||||
|
@ -744,7 +744,7 @@ class UserCreationTest < ActionDispatch::IntegrationTest
|
|||
:pass_crypt_confirmation => "" } }
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_path(:provider => "windowslive", :origin => "/user/new")
|
||||
follow_redirect!
|
||||
post response.location
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_success_path(:provider => "windowslive")
|
||||
follow_redirect!
|
||||
|
@ -782,7 +782,7 @@ class UserCreationTest < ActionDispatch::IntegrationTest
|
|||
:referer => referer }
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_path(:provider => "windowslive", :origin => "/user/new")
|
||||
follow_redirect!
|
||||
post response.location
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_success_path(:provider => "windowslive")
|
||||
follow_redirect!
|
||||
|
@ -849,7 +849,7 @@ class UserCreationTest < ActionDispatch::IntegrationTest
|
|||
:pass_crypt_confirmation => "" } }
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_path(:provider => "github", :origin => "/user/new")
|
||||
follow_redirect!
|
||||
post response.location
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_success_path(:provider => "github")
|
||||
follow_redirect!
|
||||
|
@ -895,7 +895,7 @@ class UserCreationTest < ActionDispatch::IntegrationTest
|
|||
:pass_crypt_confirmation => "" } }
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_path(:provider => "github", :origin => "/user/new")
|
||||
follow_redirect!
|
||||
post response.location
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_success_path(:provider => "github")
|
||||
follow_redirect!
|
||||
|
@ -933,7 +933,7 @@ class UserCreationTest < ActionDispatch::IntegrationTest
|
|||
:referer => referer }
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_path(:provider => "github", :origin => "/user/new")
|
||||
follow_redirect!
|
||||
post response.location
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_success_path(:provider => "github")
|
||||
follow_redirect!
|
||||
|
@ -1001,7 +1001,7 @@ class UserCreationTest < ActionDispatch::IntegrationTest
|
|||
:pass_crypt_confirmation => "" } }
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_path(:provider => "wikipedia", :origin => "/user/new")
|
||||
follow_redirect!
|
||||
post response.location
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_success_path(:provider => "wikipedia", :origin => "/user/new")
|
||||
follow_redirect!
|
||||
|
@ -1047,7 +1047,7 @@ class UserCreationTest < ActionDispatch::IntegrationTest
|
|||
:pass_crypt_confirmation => "" } }
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_path(:provider => "wikipedia", :origin => "/user/new")
|
||||
follow_redirect!
|
||||
post response.location
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_success_path(:provider => "wikipedia", :origin => "/user/new")
|
||||
follow_redirect!
|
||||
|
@ -1085,7 +1085,7 @@ class UserCreationTest < ActionDispatch::IntegrationTest
|
|||
:referer => referer }
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_path(:provider => "wikipedia", :origin => "/user/new")
|
||||
follow_redirect!
|
||||
post response.location
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_success_path(:provider => "wikipedia", :origin => "/user/new")
|
||||
follow_redirect!
|
||||
|
|
|
@ -359,7 +359,7 @@ class UserLoginTest < ActionDispatch::IntegrationTest
|
|||
follow_redirect!
|
||||
assert_response :success
|
||||
assert_template "users/login"
|
||||
get auth_path(:provider => "openid", :openid_url => "http://localhost:1123/john.doe", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
post auth_path(:provider => "openid", :openid_url => "http://localhost:1123/john.doe", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_success_path(:provider => "openid", :openid_url => "http://localhost:1123/john.doe", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
follow_redirect!
|
||||
|
@ -380,7 +380,7 @@ class UserLoginTest < ActionDispatch::IntegrationTest
|
|||
follow_redirect!
|
||||
assert_response :success
|
||||
assert_template "users/login"
|
||||
get auth_path(:provider => "openid", :openid_url => user.auth_uid, :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
post auth_path(:provider => "openid", :openid_url => user.auth_uid, :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_success_path(:provider => "openid", :openid_url => user.auth_uid, :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
follow_redirect!
|
||||
|
@ -405,7 +405,7 @@ class UserLoginTest < ActionDispatch::IntegrationTest
|
|||
follow_redirect!
|
||||
assert_response :success
|
||||
assert_template "users/login"
|
||||
get auth_path(:provider => "openid", :openid_url => user.auth_uid, :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
post auth_path(:provider => "openid", :openid_url => user.auth_uid, :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_success_path(:provider => "openid", :openid_url => user.auth_uid, :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
follow_redirect!
|
||||
|
@ -429,7 +429,7 @@ class UserLoginTest < ActionDispatch::IntegrationTest
|
|||
follow_redirect!
|
||||
assert_response :success
|
||||
assert_template "users/login"
|
||||
get auth_path(:provider => "openid", :openid_url => "http://localhost:1123/fred.bloggs", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
post auth_path(:provider => "openid", :openid_url => "http://localhost:1123/fred.bloggs", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_success_path(:provider => "openid", :openid_url => "http://localhost:1123/fred.bloggs", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
follow_redirect!
|
||||
|
@ -452,7 +452,7 @@ class UserLoginTest < ActionDispatch::IntegrationTest
|
|||
follow_redirect!
|
||||
assert_response :success
|
||||
assert_template "users/login"
|
||||
get auth_path(:provider => "google", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
post auth_path(:provider => "google", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_success_path(:provider => "google")
|
||||
follow_redirect!
|
||||
|
@ -472,7 +472,7 @@ class UserLoginTest < ActionDispatch::IntegrationTest
|
|||
follow_redirect!
|
||||
assert_response :success
|
||||
assert_template "users/login"
|
||||
get auth_path(:provider => "google", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
post auth_path(:provider => "google", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_success_path(:provider => "google")
|
||||
follow_redirect!
|
||||
|
@ -496,7 +496,7 @@ class UserLoginTest < ActionDispatch::IntegrationTest
|
|||
follow_redirect!
|
||||
assert_response :success
|
||||
assert_template "users/login"
|
||||
get auth_path(:provider => "google", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
post auth_path(:provider => "google", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_success_path(:provider => "google")
|
||||
follow_redirect!
|
||||
|
@ -522,7 +522,7 @@ class UserLoginTest < ActionDispatch::IntegrationTest
|
|||
follow_redirect!
|
||||
assert_response :success
|
||||
assert_template "users/login"
|
||||
get auth_path(:provider => "google", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
post auth_path(:provider => "google", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_success_path(:provider => "google")
|
||||
follow_redirect!
|
||||
|
@ -545,7 +545,7 @@ class UserLoginTest < ActionDispatch::IntegrationTest
|
|||
follow_redirect!
|
||||
assert_response :success
|
||||
assert_template "users/login"
|
||||
get auth_path(:provider => "google", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
post auth_path(:provider => "google", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_success_path(:provider => "google")
|
||||
follow_redirect!
|
||||
|
@ -570,7 +570,7 @@ class UserLoginTest < ActionDispatch::IntegrationTest
|
|||
follow_redirect!
|
||||
assert_response :success
|
||||
assert_template "users/login"
|
||||
get auth_path(:provider => "facebook", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
post auth_path(:provider => "facebook", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_success_path(:provider => "facebook")
|
||||
follow_redirect!
|
||||
|
@ -590,7 +590,7 @@ class UserLoginTest < ActionDispatch::IntegrationTest
|
|||
follow_redirect!
|
||||
assert_response :success
|
||||
assert_template "users/login"
|
||||
get auth_path(:provider => "facebook", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
post auth_path(:provider => "facebook", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_success_path(:provider => "facebook")
|
||||
follow_redirect!
|
||||
|
@ -614,7 +614,7 @@ class UserLoginTest < ActionDispatch::IntegrationTest
|
|||
follow_redirect!
|
||||
assert_response :success
|
||||
assert_template "users/login"
|
||||
get auth_path(:provider => "facebook", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
post auth_path(:provider => "facebook", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_success_path(:provider => "facebook")
|
||||
follow_redirect!
|
||||
|
@ -638,7 +638,7 @@ class UserLoginTest < ActionDispatch::IntegrationTest
|
|||
follow_redirect!
|
||||
assert_response :success
|
||||
assert_template "users/login"
|
||||
get auth_path(:provider => "facebook", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
post auth_path(:provider => "facebook", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_success_path(:provider => "facebook")
|
||||
follow_redirect!
|
||||
|
@ -659,7 +659,7 @@ class UserLoginTest < ActionDispatch::IntegrationTest
|
|||
follow_redirect!
|
||||
assert_response :success
|
||||
assert_template "users/login"
|
||||
get auth_path(:provider => "windowslive", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
post auth_path(:provider => "windowslive", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_success_path(:provider => "windowslive")
|
||||
follow_redirect!
|
||||
|
@ -679,7 +679,7 @@ class UserLoginTest < ActionDispatch::IntegrationTest
|
|||
follow_redirect!
|
||||
assert_response :success
|
||||
assert_template "users/login"
|
||||
get auth_path(:provider => "windowslive", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
post auth_path(:provider => "windowslive", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_success_path(:provider => "windowslive")
|
||||
follow_redirect!
|
||||
|
@ -703,7 +703,7 @@ class UserLoginTest < ActionDispatch::IntegrationTest
|
|||
follow_redirect!
|
||||
assert_response :success
|
||||
assert_template "users/login"
|
||||
get auth_path(:provider => "windowslive", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
post auth_path(:provider => "windowslive", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_success_path(:provider => "windowslive")
|
||||
follow_redirect!
|
||||
|
@ -727,7 +727,7 @@ class UserLoginTest < ActionDispatch::IntegrationTest
|
|||
follow_redirect!
|
||||
assert_response :success
|
||||
assert_template "users/login"
|
||||
get auth_path(:provider => "windowslive", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
post auth_path(:provider => "windowslive", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_success_path(:provider => "windowslive")
|
||||
follow_redirect!
|
||||
|
@ -748,7 +748,7 @@ class UserLoginTest < ActionDispatch::IntegrationTest
|
|||
follow_redirect!
|
||||
assert_response :success
|
||||
assert_template "users/login"
|
||||
get auth_path(:provider => "github", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
post auth_path(:provider => "github", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_success_path(:provider => "github")
|
||||
follow_redirect!
|
||||
|
@ -768,7 +768,7 @@ class UserLoginTest < ActionDispatch::IntegrationTest
|
|||
follow_redirect!
|
||||
assert_response :success
|
||||
assert_template "users/login"
|
||||
get auth_path(:provider => "github", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
post auth_path(:provider => "github", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_success_path(:provider => "github")
|
||||
follow_redirect!
|
||||
|
@ -792,7 +792,7 @@ class UserLoginTest < ActionDispatch::IntegrationTest
|
|||
follow_redirect!
|
||||
assert_response :success
|
||||
assert_template "users/login"
|
||||
get auth_path(:provider => "github", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
post auth_path(:provider => "github", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_success_path(:provider => "github")
|
||||
follow_redirect!
|
||||
|
@ -816,7 +816,7 @@ class UserLoginTest < ActionDispatch::IntegrationTest
|
|||
follow_redirect!
|
||||
assert_response :success
|
||||
assert_template "users/login"
|
||||
get auth_path(:provider => "github", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
post auth_path(:provider => "github", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_success_path(:provider => "github")
|
||||
follow_redirect!
|
||||
|
@ -837,7 +837,7 @@ class UserLoginTest < ActionDispatch::IntegrationTest
|
|||
follow_redirect!
|
||||
assert_response :success
|
||||
assert_template "users/login"
|
||||
get auth_path(:provider => "wikipedia", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
post auth_path(:provider => "wikipedia", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_success_path(:provider => "wikipedia", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
follow_redirect!
|
||||
|
@ -857,7 +857,7 @@ class UserLoginTest < ActionDispatch::IntegrationTest
|
|||
follow_redirect!
|
||||
assert_response :success
|
||||
assert_template "users/login"
|
||||
get auth_path(:provider => "wikipedia", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
post auth_path(:provider => "wikipedia", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_success_path(:provider => "wikipedia", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
follow_redirect!
|
||||
|
@ -881,7 +881,7 @@ class UserLoginTest < ActionDispatch::IntegrationTest
|
|||
follow_redirect!
|
||||
assert_response :success
|
||||
assert_template "users/login"
|
||||
get auth_path(:provider => "wikipedia", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
post auth_path(:provider => "wikipedia", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_success_path(:provider => "wikipedia", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
follow_redirect!
|
||||
|
@ -905,7 +905,7 @@ class UserLoginTest < ActionDispatch::IntegrationTest
|
|||
follow_redirect!
|
||||
assert_response :success
|
||||
assert_template "users/login"
|
||||
get auth_path(:provider => "wikipedia", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
post auth_path(:provider => "wikipedia", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
assert_response :redirect
|
||||
assert_redirected_to auth_success_path(:provider => "wikipedia", :origin => "/login?referer=%2Fhistory", :referer => "/history")
|
||||
follow_redirect!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue