specs: make build and create consistent in downloadable_file_spec

This commit is contained in:
Pierre de La Morinerie 2021-03-30 16:32:15 +02:00
parent 233f51e8ca
commit 02743365eb

View file

@ -27,7 +27,7 @@ describe ActiveStorage::DownloadableFile do
context 'when there is a repetition bloc' do
before do
dossier.champs << build(:champ_repetition_with_piece_jointe, dossier: dossier)
dossier.champs << create(:champ_repetition_with_piece_jointe, dossier: dossier)
end
it 'should have 4 piece_justificatives' do