From 02743365eb80cea10aa133a5f8bcc1a4c45977e6 Mon Sep 17 00:00:00 2001 From: Pierre de La Morinerie Date: Tue, 30 Mar 2021 16:32:15 +0200 Subject: [PATCH] specs: make `build` and `create` consistent in `downloadable_file_spec` --- spec/lib/active_storage/downloadable_file_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/lib/active_storage/downloadable_file_spec.rb b/spec/lib/active_storage/downloadable_file_spec.rb index 6fc938311..200c519f7 100644 --- a/spec/lib/active_storage/downloadable_file_spec.rb +++ b/spec/lib/active_storage/downloadable_file_spec.rb @@ -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