demarches-normaliennes/spec/factories/champ.rb
2018-03-29 17:45:19 +02:00

21 lines
474 B
Ruby

FactoryBot.define do
factory :champ do
type_de_champ { create(:type_de_champ) }
trait :checkbox do
type_de_champ { create(:type_de_champ_checkbox) }
end
trait :header_section do
type_de_champ { create(:type_de_champ_header_section) }
end
trait :explication do
type_de_champ { create(:type_de_champ_explication) }
end
trait :dossier_link do
type_de_champ { create(:type_de_champ_dossier_link) }
end
end
end