BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
a0c044c1
Commit
a0c044c1
authored
Jun 28, 2017
by
Oswaldo Ferreira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve tests text
parent
bd4c2847
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
namespaces.md
doc/api/namespaces.md
+0
-1
namespaces_spec.rb
spec/requests/api/namespaces_spec.rb
+2
-2
No files found.
doc/api/namespaces.md
View file @
a0c044c1
...
@@ -39,7 +39,6 @@ Example response:
...
@@ -39,7 +39,6 @@ Example response:
"full_path"
:
"group1"
,
"full_path"
:
"group1"
,
"parent_id"
:
"null"
,
"parent_id"
:
"null"
,
"members_count_with_descendants"
:
2
"members_count_with_descendants"
:
2
},
},
{
{
"id"
:
3
,
"id"
:
3
,
...
...
spec/requests/api/namespaces_spec.rb
View file @
a0c044c1
...
@@ -51,7 +51,7 @@ describe API::Namespaces do
...
@@ -51,7 +51,7 @@ describe API::Namespaces do
end
end
context
"when authenticated as a regular user"
do
context
"when authenticated as a regular user"
do
it
"returns
members_count_with_descendants if
user can admin group"
do
it
"returns
correct attributes when
user can admin group"
do
group1
.
add_owner
(
user
)
group1
.
add_owner
(
user
)
get
api
(
"/namespaces"
,
user
)
get
api
(
"/namespaces"
,
user
)
...
@@ -62,7 +62,7 @@ describe API::Namespaces do
...
@@ -62,7 +62,7 @@ describe API::Namespaces do
'parent_id'
,
'members_count_with_descendants'
)
'parent_id'
,
'members_count_with_descendants'
)
end
end
it
"
does not returns members_count_with_descendants if
user cannot admin group"
do
it
"
returns correct attributes when
user cannot admin group"
do
group1
.
add_guest
(
user
)
group1
.
add_guest
(
user
)
get
api
(
"/namespaces"
,
user
)
get
api
(
"/namespaces"
,
user
)
...
...
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