Replace deprecated response.redirected_to with response.redirect_url
This commit is contained in:
parent
ba97fca4f2
commit
3ae17e46ad
2 changed files with 5 additions and 5 deletions
|
@ -147,7 +147,7 @@ class UserCreationTest < ActionController::IntegrationTest
|
|||
post "/user/terms",
|
||||
{:user => { :email => new_email, :email_confirmation => new_email, :display_name => display_name, :openid_url => "http://localhost:1123/john.doe?openid.success=newuser", :pass_crypt => "", :pass_crypt_confirmation => ""}}
|
||||
assert_response :redirect
|
||||
res = openid_request(@response.redirected_to)
|
||||
res = openid_request(@response.redirect_url)
|
||||
post '/user/terms', res
|
||||
assert_response :success
|
||||
assert_template 'terms'
|
||||
|
@ -174,7 +174,7 @@ class UserCreationTest < ActionController::IntegrationTest
|
|||
post "/user/terms",
|
||||
{:user => { :email => new_email, :email_confirmation => new_email, :display_name => display_name, :openid_url => "http://localhost:1123/john.doe?openid.failure=newuser", :pass_crypt => "", :pass_crypt_confirmation => ""}}
|
||||
assert_response :redirect
|
||||
res = openid_request(@response.redirected_to)
|
||||
res = openid_request(@response.redirect_url)
|
||||
post '/user/terms', res
|
||||
assert_response :success
|
||||
assert_template 'user/new'
|
||||
|
|
|
@ -46,7 +46,7 @@ class UserLoginTest < ActionController::IntegrationTest
|
|||
post '/login', {'openid_url' => "http://localhost:1123/john.doe?openid.success=true", :referer => "/browse"}
|
||||
assert_response :redirect
|
||||
|
||||
res = openid_request(@response.redirected_to)
|
||||
res = openid_request(@response.redirect_url)
|
||||
res2 = post '/login', res
|
||||
|
||||
assert_response :redirect
|
||||
|
@ -64,7 +64,7 @@ class UserLoginTest < ActionController::IntegrationTest
|
|||
post '/login', {'openid_url' => "http://localhost:1123/john.doe", :referer => "/diary"}
|
||||
assert_response :redirect
|
||||
|
||||
res = openid_request(@response.redirected_to)
|
||||
res = openid_request(@response.redirect_url)
|
||||
post '/login', res
|
||||
|
||||
assert_response :redirect
|
||||
|
@ -110,7 +110,7 @@ class UserLoginTest < ActionController::IntegrationTest
|
|||
post '/login', {'openid_url' => "http://localhost:1123/john.doe?openid.success=true_somethingelse", :referer => "/diary"}
|
||||
assert_response :redirect
|
||||
|
||||
res = openid_request(@response.redirected_to)
|
||||
res = openid_request(@response.redirect_url)
|
||||
res2 = post '/login', res
|
||||
|
||||
assert_response :redirect
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue