models: require belong_to associations on individual
This commit is contained in:
parent
afb1c33154
commit
fe8804f208
5 changed files with 6 additions and 5 deletions
|
@ -49,7 +49,7 @@ FactoryBot.define do
|
|||
if !dossier.procedure.for_individual?
|
||||
raise 'Inconsistent factory: attempting to create a dossier :with_individual on a procedure that is not `for_individual?`'
|
||||
end
|
||||
dossier.individual = create(:individual)
|
||||
dossier.individual = build(:individual, dossier: dossier)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue