demarches-normaliennes/spec/factories/procedure_presentation.rb
2024-11-12 13:52:09 +01:00

11 lines
310 B
Ruby

# frozen_string_literal: true
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 }
end
end