generate pdf export inside pieces_justificatives_service
This commit is contained in:
parent
c25f3c79d9
commit
fba0d78153
7 changed files with 41 additions and 34 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue