chore(bulk messages): update associations
This commit is contained in:
parent
89401d0e30
commit
30f96a79c2
7 changed files with 3 additions and 9 deletions
|
@ -5,7 +5,6 @@ FactoryBot.define do
|
|||
dossier_state { Dossier.states.fetch(:brouillon) }
|
||||
sent_at { 1.day.ago }
|
||||
instructeur { association :instructeur }
|
||||
groupe_instructeurs { [association(:groupe_instructeur, strategy: :build)] }
|
||||
procedure { association :procedure }
|
||||
end
|
||||
end
|
||||
|
|
|
@ -12,9 +12,5 @@ FactoryBot.define do
|
|||
trait :default do
|
||||
label { GroupeInstructeur::DEFAUT_LABEL }
|
||||
end
|
||||
|
||||
trait :with_bulk_message do
|
||||
bulk_messages { [association(:bulk_message, strategy: :build)] }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -94,7 +94,7 @@ FactoryBot.define do
|
|||
end
|
||||
|
||||
trait :with_bulk_message do
|
||||
groupe_instructeurs { [association(:groupe_instructeur, :default, :with_bulk_message, procedure: instance, strategy: :build)] }
|
||||
bulk_messages { [create(:bulk_message)] }
|
||||
end
|
||||
|
||||
trait :with_logo do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue