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
3cfcd789
Commit
3cfcd789
authored
Apr 19, 2019
by
Alessio Caiazza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix broken tests after CE-EE merge
parent
13cb406a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
ee/spec/requests/api/namespaces_spec.rb
ee/spec/requests/api/namespaces_spec.rb
+4
-2
No files found.
ee/spec/requests/api/namespaces_spec.rb
View file @
3cfcd789
...
...
@@ -20,10 +20,12 @@ describe API::Namespaces do
expect
(
group_kind_json_response
.
keys
).
to
contain_exactly
(
'id'
,
'kind'
,
'name'
,
'path'
,
'full_path'
,
'parent_id'
,
'members_count_with_descendants'
,
'plan'
,
'shared_runners_minutes_limit'
,
'avatar_url'
,
'web_url'
,
'extra_shared_runners_minutes_limit'
,
'billable_members_count'
)
expect
(
user_kind_json_response
.
keys
).
to
contain_exactly
(
'id'
,
'kind'
,
'name'
,
'path'
,
'full_path'
,
'parent_id'
,
'plan'
,
'shared_runners_minutes_limit'
,
'avatar_url'
,
'web_url'
,
'extra_shared_runners_minutes_limit'
,
'billable_members_count'
)
end
end
...
...
@@ -38,7 +40,7 @@ describe API::Namespaces do
expect
(
owned_group_response
.
keys
).
to
contain_exactly
(
'id'
,
'kind'
,
'name'
,
'path'
,
'full_path'
,
'plan'
,
'parent_id'
,
'members_count_with_descendants'
,
'billable_members_count'
)
'
avatar_url'
,
'web_url'
,
'
billable_members_count'
)
end
it
"returns correct attributes when user cannot admin group"
do
...
...
@@ -49,7 +51,7 @@ describe API::Namespaces do
guest_group_response
=
json_response
.
find
{
|
resource
|
resource
[
'id'
]
==
group1
.
id
}
expect
(
guest_group_response
.
keys
).
to
contain_exactly
(
'id'
,
'kind'
,
'name'
,
'path'
,
'full_path'
,
'parent_id'
,
'billable_members_count'
)
'
avatar_url'
,
'web_url'
,
'
billable_members_count'
)
end
end
...
...
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