Merge pull request #10477 from mfo/US/fix-broken-batch-operation-spec

fix(spec): maj broken spec on main
This commit is contained in:
mfo 2024-05-31 07:01:03 +00:00 committed by GitHub
commit 84c2ded2a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -239,17 +239,17 @@ describe BatchOperation, type: :model do
context 'accepter' do context 'accepter' do
let(:operation) { :accepter } 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 end
context 'refuser' do context 'refuser' do
let(:operation) { :refuser } 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 end
context 'classer_sans_suite' do context 'classer_sans_suite' do
let(:operation) { :classer_sans_suite } 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
end end