fix style validations
This commit is contained in:
parent
78bb7c67e8
commit
b35f33a6b8
5 changed files with 8 additions and 10 deletions
|
|
@ -7,7 +7,7 @@ module ApiHelper
|
|||
let(:api_access_token) { create(:oauth2_access_token, resource_owner_id: user.id, scopes: api_scopes&.join(' ')).token }
|
||||
let(:Authorization) { "Bearer #{api_access_token}" }
|
||||
|
||||
def self.it_handles_invalid_token()
|
||||
def self.it_handles_invalid_token
|
||||
context 'with invalid access token' do
|
||||
let(:Authorization) { 'abc' }
|
||||
|
||||
|
|
@ -18,7 +18,7 @@ module ApiHelper
|
|||
end
|
||||
end
|
||||
|
||||
def self.it_handles_invalid_scope()
|
||||
def self.it_handles_invalid_scope
|
||||
context 'with invalid scope' do
|
||||
let(:api_scopes) { ['none'] }
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
RSpec.configure do |config|
|
||||
# load FactoryBot shortcuts create(), etc.
|
||||
config.include FactoryBot::Syntax::Methods
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ RSpec.configure do |config|
|
|||
'finance:write': 'reading and creating financial transactions',
|
||||
'user:read': 'reading your own user profile',
|
||||
'user:write': 'reading and updating your own user profile',
|
||||
offline_access: 'retain access after user has logged out',
|
||||
offline_access: 'retain access after user has logged out'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -120,9 +120,9 @@ RSpec.configure do |config|
|
|||
],
|
||||
security: [
|
||||
oauth2: [
|
||||
'user:read',
|
||||
],
|
||||
],
|
||||
'user:read'
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue