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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
cc4b2151
Commit
cc4b2151
authored
Oct 26, 2018
by
Heinrich Lee Yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add :nested_groups metadata to tests using subgroups
parent
b1245604
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
spec/requests/api/groups_spec.rb
spec/requests/api/groups_spec.rb
+3
-3
No files found.
spec/requests/api/groups_spec.rb
View file @
cc4b2151
...
...
@@ -490,7 +490,7 @@ describe API::Groups do
expect
(
json_response
.
first
[
'visibility'
]).
not_to
be_present
end
it
'filters the groups projects'
do
it
"filters the groups projects"
do
public_project
=
create
(
:project
,
:public
,
path:
'test1'
,
group:
group1
)
get
api
(
"/groups/
#{
group1
.
id
}
/projects"
,
user1
),
visibility:
'public'
...
...
@@ -502,7 +502,7 @@ describe API::Groups do
expect
(
json_response
.
first
[
'name'
]).
to
eq
(
public_project
.
name
)
end
it
'returns projects excluding shared'
do
it
"returns projects excluding shared"
do
create
(
:project_group_link
,
project:
create
(
:project
),
group:
group1
)
create
(
:project_group_link
,
project:
create
(
:project
),
group:
group1
)
create
(
:project_group_link
,
project:
create
(
:project
),
group:
group1
)
...
...
@@ -515,7 +515,7 @@ describe API::Groups do
expect
(
json_response
.
length
).
to
eq
(
2
)
end
it
'returns projects including those in subgroups'
do
it
"returns projects including those in subgroups"
,
:nested_groups
do
subgroup
=
create
(
:group
,
parent:
group1
)
create
(
:project
,
group:
subgroup
)
create
(
:project
,
group:
subgroup
)
...
...
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