Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-01-28 15:17:26 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-01-28 15:17:26 +0300
commitd6ce16a4070112512d792f7ab66fdca4764cbf2c (patch)
treea85a3c45b5fb1bfd66badf100198cbc0036227e9 /spec/workers/pipeline_schedule_worker_spec.rb
parentfa4a0663e8c12b7b80e9e7edec99e6ca5a04a253 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/workers/pipeline_schedule_worker_spec.rb')
-rw-r--r--spec/workers/pipeline_schedule_worker_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/workers/pipeline_schedule_worker_spec.rb b/spec/workers/pipeline_schedule_worker_spec.rb
index f59d8ad4615..4a7db0eca56 100644
--- a/spec/workers/pipeline_schedule_worker_spec.rb
+++ b/spec/workers/pipeline_schedule_worker_spec.rb
@@ -103,4 +103,14 @@ RSpec.describe PipelineScheduleWorker do
expect { subject }.not_to raise_error
end
end
+
+ context 'when the project is missing' do
+ before do
+ project.delete
+ end
+
+ it 'does not raise an exception' do
+ expect { subject }.not_to raise_error
+ end
+ end
end