chore(piece_justificative): continue attachments refactor

This commit is contained in:
Colin Darie 2022-10-29 16:08:59 +02:00
parent 7ae6efe776
commit 6a0379086d
11 changed files with 36 additions and 32 deletions

View file

@ -23,7 +23,7 @@ describe Champs::PieceJustificativeController, type: :controller do
subject
champ.reload
expect(champ.piece_justificative_file.attached?).to be true
expect(champ.piece_justificative_file.filename).to eq('piece_justificative_0.pdf')
expect(champ.piece_justificative_file[0].filename).to eq('piece_justificative_0.pdf')
end
it 'renders the attachment template as Javascript' do