diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-28 15:17:26 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-28 15:17:26 +0300 |
commit | d6ce16a4070112512d792f7ab66fdca4764cbf2c (patch) | |
tree | a85a3c45b5fb1bfd66badf100198cbc0036227e9 /spec/workers/pipeline_schedule_worker_spec.rb | |
parent | fa4a0663e8c12b7b80e9e7edec99e6ca5a04a253 (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.rb | 10 |
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 |