diff options
author | Dennis Tang <dennis@dennistang.net> | 2018-09-07 06:09:13 +0000 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2018-09-07 06:09:13 +0000 |
commit | 5b74a1aebcc1712316b8269c415e83e9d59750d5 (patch) | |
tree | a398af6332ae6fd8165981c63aecd7602a338560 /spec/finders | |
parent | 53fae9ad84361bbf3f9fb3db446c9bb22772fb64 (diff) | |
download | gitlab-ce-5b74a1aebcc1712316b8269c415e83e9d59750d5.tar.gz |
Resolve "Improve handling of projects shared with a group"
Diffstat (limited to 'spec/finders')
-rw-r--r-- | spec/finders/group_descendants_finder_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/finders/group_descendants_finder_spec.rb b/spec/finders/group_descendants_finder_spec.rb index 796d40cb625..c64abdc3619 100644 --- a/spec/finders/group_descendants_finder_spec.rb +++ b/spec/finders/group_descendants_finder_spec.rb @@ -108,6 +108,15 @@ describe GroupDescendantsFinder do end end end + + it 'does not include projects shared with the group' do + project = create(:project, namespace: group) + other_project = create(:project) + other_project.project_group_links.create(group: group, + group_access: ProjectGroupLink::MASTER) + + expect(finder.execute).to contain_exactly(project) + end end context 'with nested groups', :nested_groups do |