diff options
author | Tiago Botelho <tiagonbotelho@hotmail.com> | 2017-08-08 17:40:22 +0100 |
---|---|---|
committer | Tiago Botelho <tiagonbotelho@hotmail.com> | 2017-08-11 11:45:09 +0100 |
commit | 21066e827ab6b957b0948b025745b563f01a00d5 (patch) | |
tree | 088a6b6427fc2455a40c0db881046cc4645cc61f /spec/finders/admin | |
parent | 86f5a4aaf19935b4d23a81426c1576bc16024696 (diff) | |
download | gitlab-ce-21066e827ab6b957b0948b025745b563f01a00d5.tar.gz |
Pending delete projects no longer return 500 error in Admins projects view35435-pending-delete-project-error-in-admin-interface-fix
Diffstat (limited to 'spec/finders/admin')
-rw-r--r-- | spec/finders/admin/projects_finder_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/finders/admin/projects_finder_spec.rb b/spec/finders/admin/projects_finder_spec.rb index 4e367d39cf3..28e36330029 100644 --- a/spec/finders/admin/projects_finder_spec.rb +++ b/spec/finders/admin/projects_finder_spec.rb @@ -38,6 +38,12 @@ describe Admin::ProjectsFinder do it { is_expected.to match_array([shared_project, public_project, internal_project, private_project]) } end + context 'with pending delete project' do + let!(:pending_delete_project) { create(:project, pending_delete: true) } + + it { is_expected.not_to include(pending_delete_project) } + end + context 'filter by namespace_id' do let(:namespace) { create(:namespace) } let!(:project_in_namespace) { create(:project, namespace: namespace) } |