Fix factory to avoid crash because of procedure is nil
This commit is contained in:
parent
e5966fda46
commit
22034730b0
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ FactoryBot.define do
|
|||
end
|
||||
|
||||
trait :with_service do
|
||||
after(:build) do |dossier, _evaluator|
|
||||
after(:create) do |dossier, _evaluator|
|
||||
dossier.procedure.service = create(:service)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue