demarches-normaliennes/spec/factories/procedure_presentation.rb
2020-08-18 15:57:36 +02:00

10 lines
353 B
Ruby

FactoryBot.define do
factory :procedure_presentation do
transient do
procedure { create(:procedure, :with_instructeur, :with_type_de_champ) }
end
assign_to { association :assign_to, procedure: procedure, instructeur: procedure.instructeurs.first }
sort { { "table" => "user", "column" => "email", "order" => "asc" } }
end
end