experts_procedure should not be optional
This commit is contained in:
parent
25c85dd0f9
commit
0b22788d60
18 changed files with 59 additions and 53 deletions
|
@ -9,6 +9,10 @@ FactoryBot.define do
|
|||
association :dossier
|
||||
association :claimant, factory: :instructeur
|
||||
|
||||
after(:build) do |avis, _evaluator|
|
||||
avis.experts_procedure ||= build(:experts_procedure, procedure: avis.dossier.procedure)
|
||||
end
|
||||
|
||||
trait :with_instructeur do
|
||||
email { nil }
|
||||
instructeur { association :instructeur, email: generate(:expert_email) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue