chore(piece_justificative): continue attachments refactor
This commit is contained in:
parent
7ae6efe776
commit
6a0379086d
11 changed files with 36 additions and 32 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue