fix linter

This commit is contained in:
Lisa Durand 2022-12-12 10:30:16 +01:00 committed by mfo
parent ff7c1fef65
commit eea42aad6b
3 changed files with 7 additions and 8 deletions

View file

@ -1,5 +1,4 @@
RSpec.describe Dossiers::BatchAlertComponent, type: :component do
let(:instructeur) { create(:instructeur) }
let(:procedure) { create(:procedure) }

View file

@ -26,9 +26,9 @@ describe BatchOperationProcessOneJob, type: :job do
context 'when operation is "archiver"' do
it 'archives the dossier in the batch' do
expect { subject.perform_now }
.to change { dossier_job.reload.archived? }
.from(false)
.to(true)
.to change { dossier_job.reload.archived? }
.from(false)
.to(true)
end
end
@ -40,9 +40,9 @@ describe BatchOperationProcessOneJob, type: :job do
it 'changes the dossier to en_instruction in the batch' do
expect { subject.perform_now }
.to change { dossier_job.reload.en_instruction? }
.from(false)
.to(true)
.to change { dossier_job.reload.en_instruction? }
.from(false)
.to(true)
end
end

View file

@ -186,7 +186,7 @@ describe BatchOperation, type: :model do
let(:instructeur) { create(:instructeur) }
let(:procedure) { create(:simple_procedure, instructeurs: [instructeur]) }
let(:dossier_2) { create(:dossier, :accepte, procedure: procedure) }
subject { BatchOperation.safe_create!(instructeur: instructeur, operation: :archiver, dossier_ids: [dossier.id, dossier_2.id,]) }
subject { BatchOperation.safe_create!(instructeur: instructeur, operation: :archiver, dossier_ids: [dossier.id, dossier_2.id]) }
context 'success with divergent list of dossier_ids' do
let(:dossier) { create(:dossier, :accepte, :with_individual, archived: true, procedure: procedure) }