search attachments inside bloc repetables
This commit is contained in:
parent
cce84a4209
commit
feb9c32537
3 changed files with 38 additions and 3 deletions
|
@ -15,5 +15,14 @@ describe ActiveStorage::DownloadableFile do
|
|||
|
||||
it { expect(list.length).to be 1 }
|
||||
end
|
||||
|
||||
context 'when there is a repetition bloc' do
|
||||
let(:champ) { build(:champ_repetition_with_piece_jointe) }
|
||||
let(:dossier) { create(:dossier, :en_construction, champs: [champ]) }
|
||||
|
||||
it 'should have 4 piece_justificatives' do
|
||||
expect(list.size).to eq(4)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue