From 919e3e3cd83e76dba137ef9bcc4746214c2085ff Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Tue, 7 Feb 2023 21:09:58 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- spec/models/project_spec.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'spec/models/project_spec.rb') diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb index 4988ba3b70b..b438984322d 100644 --- a/spec/models/project_spec.rb +++ b/spec/models/project_spec.rb @@ -8813,6 +8813,16 @@ RSpec.describe Project, factory_default: :keep, feature_category: :projects do end end + describe '.is_importing' do + it 'returns projects that have import in progress' do + project_1 = create(:project, :import_scheduled, import_type: 'github') + project_2 = create(:project, :import_started, import_type: 'github') + create(:project, :import_finished, import_type: 'github') + + expect(described_class.is_importing).to match_array([project_1, project_2]) + end + end + private def finish_job(export_job) -- cgit v1.2.1