X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7d09beb57035965d4cf47cbf0ae660030285db22..ed98d71417d46dedf5fed63cd51e92a314e7ff3b:/test/integration/user_creation_test.rb?ds=sidebyside diff --git a/test/integration/user_creation_test.rb b/test/integration/user_creation_test.rb index c53fd575f..3c716e99e 100644 --- a/test/integration/user_creation_test.rb +++ b/test/integration/user_creation_test.rb @@ -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'