generate pdf export inside pieces_justificatives_service

This commit is contained in:
Christophe Robillard 2021-03-29 21:45:46 +02:00
parent c25f3c79d9
commit fba0d78153
7 changed files with 41 additions and 34 deletions

View file

@ -16,7 +16,12 @@ describe PiecesJustificativesService do
# to be exported
it 'ensures no titre identite is given' do
expect(champ_identite.piece_justificative_file).to be_attached
expect(subject).to eq([])
expect(subject.any? { |piece| piece.name == 'piece_justificative_file' }).to be_falsy
end
it 'returns export pdf of the dossier' do
expect(champ_identite.piece_justificative_file).to be_attached
expect(subject.any? { |piece| piece.name == 'pdf_export_for_instructeur' }).to be_truthy
end
end
end