X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/bde2faac581d7c16582e1012ba036f8c535773f2..e41814d1395803bdb46bfa4db88424be9d47071f:/test/integration/oauth2_test.rb diff --git a/test/integration/oauth2_test.rb b/test/integration/oauth2_test.rb index 3fe59cbdd..3c532ca74 100644 --- a/test/integration/oauth2_test.rb +++ b/test/integration/oauth2_test.rb @@ -222,18 +222,18 @@ class OAuth2Test < ActionDispatch::IntegrationTest end def test_token(token, user, client) - get user_preferences_path + get api_user_preferences_path assert_response :unauthorized auth_header = bearer_authorization_header(token) - get user_preferences_path, :headers => auth_header + get api_user_preferences_path, :headers => auth_header assert_response :success - get user_preferences_path(:access_token => token) + get api_user_preferences_path(:access_token => token) assert_response :unauthorized - get user_preferences_path(:bearer_token => token) + get api_user_preferences_path(:bearer_token => token) assert_response :unauthorized get api_trace_path(:id => 2), :headers => auth_header @@ -241,17 +241,17 @@ class OAuth2Test < ActionDispatch::IntegrationTest user.suspend! - get user_preferences_path, :headers => auth_header + get api_user_preferences_path, :headers => auth_header assert_response :forbidden user.hide! - get user_preferences_path, :headers => auth_header + get api_user_preferences_path, :headers => auth_header assert_response :forbidden user.unhide! - get user_preferences_path, :headers => auth_header + get api_user_preferences_path, :headers => auth_header assert_response :success post oauth_revoke_path(:token => token) @@ -262,7 +262,7 @@ class OAuth2Test < ActionDispatch::IntegrationTest :client_secret => client.plaintext_secret) assert_response :success - get user_preferences_path, :headers => auth_header + get api_user_preferences_path, :headers => auth_header assert_response :unauthorized end end