Commit 91a1a233 authored by Arturo Herrero's avatar Arturo Herrero

Setup public projects for /users/:namespace/repos specs

We want to make sure that we do not return public projects.
parent 3877f9e1
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment