Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
5bbcc35b
Commit
5bbcc35b
authored
May 25, 2020
by
Nikita Bulai
Committed by
Nikita Bulai
May 28, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix specs and use GitLab code style guides
parent
05525d6b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
spec/requests/api/oauth_tokens_spec.rb
spec/requests/api/oauth_tokens_spec.rb
+6
-3
No files found.
spec/requests/api/oauth_tokens_spec.rb
View file @
5bbcc35b
...
...
@@ -23,7 +23,7 @@ describe 'OAuth tokens' do
headers:
headers
end
let
(
:client
)
{
create
(
:oauth_application
)
}
let
_it_be
(
:client
)
{
create
(
:oauth_application
)
}
context
'when user has 2FA enabled'
do
it
'does not create an access token'
do
...
...
@@ -51,7 +51,7 @@ describe 'OAuth tokens' do
end
context
'when client credentials provided'
do
context
"with valid credentials"
do
context
'with valid credentials'
do
it
'creates an access token'
do
user
=
create
(
:user
)
...
...
@@ -62,8 +62,11 @@ describe 'OAuth tokens' do
end
end
context
"with invalid credentials"
do
context
'with invalid credentials'
do
it
'does not create an access token'
do
# NOTE: remove this after update to Doorkeeper 5.5 or newer
pending
'Enable this example after upgrading Doorkeeper to 5.5 or newer'
user
=
create
(
:user
)
request_oauth_token
(
user
,
basic_auth_header
(
client
.
uid
,
'invalid secret'
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment