From a278aac92fc187488013285d15760c48adb996f6 Mon Sep 17 00:00:00 2001 From: mfo Date: Fri, 31 May 2024 08:15:26 +0200 Subject: [PATCH] fix(spec): maj broken spec on main --- spec/models/batch_operation_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/models/batch_operation_spec.rb b/spec/models/batch_operation_spec.rb index da24e7b38..07346e116 100644 --- a/spec/models/batch_operation_spec.rb +++ b/spec/models/batch_operation_spec.rb @@ -239,17 +239,17 @@ describe BatchOperation, type: :model do context 'accepter' do let(:operation) { :accepter } - it { expect { subject.process_one(dossier) }.to have_enqueued_job.on_queue(Rails.application.config.action_mailer.deliver_later_queue_name) } + it { expect { subject.process_one(dossier) }.to have_enqueued_job(PriorizedMailDeliveryJob) } end context 'refuser' do let(:operation) { :refuser } - it { expect { subject.process_one(dossier) }.to have_enqueued_job.on_queue(Rails.application.config.action_mailer.deliver_later_queue_name) } + it { expect { subject.process_one(dossier) }.to have_enqueued_job(PriorizedMailDeliveryJob) } end context 'classer_sans_suite' do let(:operation) { :classer_sans_suite } - it { expect { subject.process_one(dossier) }.to have_enqueued_job.on_queue(Rails.application.config.action_mailer.deliver_later_queue_name) } + it { expect { subject.process_one(dossier) }.to have_enqueued_job(PriorizedMailDeliveryJob) } end end