• Timothy Andrew's avatar
    Fix remaining spec failures for !12300. · 1b8223dd
    Timothy Andrew authored
    1. Get the spec for `lib/gitlab/auth.rb` passing.
    
      - Make the `request` argument to `AccessTokenValidationService` optional -
      `auth.rb` doesn't need to pass in a request.
    
      - Pass in scopes in the format `[{ name: 'api' }]` rather than `['api']`, which
      is what `AccessTokenValidationService` now expects.
    
    2. Get the spec for `API::V3::Users` passing
    
    2. Get the spec for `AccessTokenValidationService` passing
    1b8223dd
api_guard.rb 5.51 KB