diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-09-21 09:20:37 +0200 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-10-04 22:49:41 +0200 |
commit | e13753fcaa4901a840f6b33bf9e1a06185c3ba10 (patch) | |
tree | 9060e690420ca99fd413056e6b9ec90eb63cd59a /spec/finders | |
parent | 29df1ce84198801863fd1890b14099d13c6ec7fb (diff) | |
download | gitlab-ce-e13753fcaa4901a840f6b33bf9e1a06185c3ba10.tar.gz |
Only take unarchived projects into account
When finding children for a group
Diffstat (limited to 'spec/finders')
-rw-r--r-- | spec/finders/group_descendants_finder_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/finders/group_descendants_finder_spec.rb b/spec/finders/group_descendants_finder_spec.rb index c1268a486cf..77401ba09a2 100644 --- a/spec/finders/group_descendants_finder_spec.rb +++ b/spec/finders/group_descendants_finder_spec.rb @@ -19,6 +19,12 @@ describe GroupDescendantsFinder do expect(finder.execute).to contain_exactly(project) end + it 'does not include archived projects' do + _archived_project = create(:project, :archived, namespace: group) + + expect(finder.execute).to be_empty + end + context 'with a filter' do let(:params) { { filter: 'test' } } |