Commit 581e9ab1 authored by Alessio Caiazza's avatar Alessio Caiazza

Merge branch '222375-jira-dvcs-admin-private-group' into 'master'

Jira DVCS: Admin can access to private groups

See merge request gitlab-org/gitlab!34658
parents 7d0fb5bf dbc6f2cb
...@@ -300,6 +300,15 @@ RSpec.describe API::V3::Github do ...@@ -300,6 +300,15 @@ RSpec.describe API::V3::Github do
it 'returns an array of projects belonging to group' do it 'returns an array of projects belonging to group' do
expect_project_under_namespace([project, project2], group, user) expect_project_under_namespace([project, project2], group, user)
end 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
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