stop exporting bills with export_template

This commit is contained in:
simon lehericey 2024-07-23 17:09:28 +02:00
parent 33244f6d70
commit f973c59c9a
No known key found for this signature in database
GPG key ID: CDE670D827C7B3C5
2 changed files with 17 additions and 7 deletions

View file

@ -312,6 +312,12 @@ describe PiecesJustificativesService do
expect(subject).to match_array([dossier_bs.serialized.attachment, dossier_bs.signature.attachment])
end
context 'with export_template' do
let(:export_template) { default_export_template }
it { expect(subject).to be_empty }
end
context 'with a dol' do
let(:dol) { create(:dossier_operation_log, dossier: dossier) }
let(:witness_dol) { create(:dossier_operation_log, dossier: witness) }
@ -322,6 +328,12 @@ describe PiecesJustificativesService do
end
it { expect(subject).to include(dol.serialized.attachment) }
context 'with export_template' do
let(:export_template) { default_export_template }
it { expect(subject).to be_empty }
end
end
end