Commit dbc6f2cb authored by Arturo Herrero's avatar Arturo Herrero

Jira DVCS: Admin can access to private groups

parent f7272b77
......@@ -300,6 +300,15 @@ RSpec.describe API::V3::Github do
it 'returns an array of projects belonging to group' do
expect_project_under_namespace([project, project2], group, user)
end
context 'with a private group' do
let(:group) { create(:group, :private) }
let!(:project2) { create(:project, :private, group: group) }
it 'returns an array of projects belonging to group' do
expect_project_under_namespace([project, project2], group, user)
end
end
end
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