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
d4519d04
Commit
d4519d04
authored
Mar 04, 2022
by
Max Woolf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply backend maintainer suggestions
parent
24836acd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
spec/models/personal_access_token_spec.rb
spec/models/personal_access_token_spec.rb
+2
-1
No files found.
spec/models/personal_access_token_spec.rb
View file @
d4519d04
...
...
@@ -35,11 +35,12 @@ RSpec.describe PersonalAccessToken do
describe
'.owner_is_human'
do
let_it_be
(
:user
)
{
create
(
:user
,
:project_bot
)
}
let_it_be
(
:project_member
)
{
create
(
:project_member
,
user:
user
)
}
let_it_be
(
:personal_access_token
)
{
create
(
:personal_access_token
)
}
let_it_be
(
:project_access_token
)
{
create
(
:personal_access_token
,
user:
user
)
}
subject
{
described_class
.
owner_is_human
}
it
{
is_expected
.
not_to
include
(
project
_access_token
)
}
it
{
is_expected
.
to
contain_exactly
(
personal
_access_token
)
}
end
describe
'.for_user'
do
...
...
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