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
7bcc2ff0
Commit
7bcc2ff0
authored
Apr 22, 2021
by
Sean Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add spec for Graphql project members
parent
c35277ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
spec/requests/api/graphql/project/project_members_spec.rb
spec/requests/api/graphql/project/project_members_spec.rb
+16
-0
No files found.
spec/requests/api/graphql/project/project_members_spec.rb
View file @
7bcc2ff0
...
@@ -78,6 +78,22 @@ RSpec.describe 'getting project members information' do
...
@@ -78,6 +78,22 @@ RSpec.describe 'getting project members information' do
.
to
include
(
'path'
=>
%w[query project projectMembers relations]
,
.
to
include
(
'path'
=>
%w[query project projectMembers relations]
,
'message'
=>
a_string_including
(
'invalid value ([OBLIQUE])'
))
'message'
=>
a_string_including
(
'invalid value ([OBLIQUE])'
))
end
end
context
'when project is owned by a member'
do
let_it_be
(
:project
)
{
create
(
:project
,
namespace:
user
.
namespace
)
}
before_all
do
project
.
add_guest
(
child_user
)
project
.
add_guest
(
invited_user
)
end
it
'returns the owner in the response'
do
fetch_members
(
project:
project
)
expect
(
graphql_errors
).
to
be_nil
expect_array_response
(
user
,
child_user
,
invited_user
)
end
end
end
end
context
'when unauthenticated'
do
context
'when unauthenticated'
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