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
91a1a233
Commit
91a1a233
authored
Jan 20, 2020
by
Arturo Herrero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Setup public projects for /users/:namespace/repos specs
We want to make sure that we do not return public projects.
parent
3877f9e1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
ee/spec/requests/api/v3/github_spec.rb
ee/spec/requests/api/v3/github_spec.rb
+5
-0
No files found.
ee/spec/requests/api/v3/github_spec.rb
View file @
91a1a233
...
...
@@ -286,6 +286,10 @@ describe API::V3::Github do
context
'when instance admin'
do
let
(
:project
)
{
create
(
:project
,
group:
group
)
}
before
do
create
(
:project
,
:public
)
end
it
'returns an array of projects belonging to group with github format'
do
expect_project_under_namespace
([
project
],
group
,
create
(
:user
,
:admin
))
end
...
...
@@ -295,6 +299,7 @@ describe API::V3::Github do
let
(
:project
)
{
create
(
:project
,
group:
group
)
}
before
do
create
(
:project
,
:public
)
group
.
add_maintainer
(
user
)
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