X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/ba97fca4f271132a4c0bad9d298b6a97ecb049c4..3ae17e46adb861fc7167dfed7bcf5968dbf3f9a2:/test/integration/user_creation_test.rb 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'