demarches-normaliennes/spec/factories/champ.rb
2017-09-06 11:11:16 +02:00

13 lines
346 B
Ruby

FactoryGirl.define do
factory :champ do
type_de_champ { FactoryGirl.create(:type_de_champ_public) }
trait :checkbox do
type_de_champ { FactoryGirl.create(:type_de_champ_public, :checkbox) }
end
trait :header_section do
type_de_champ { FactoryGirl.create(:type_de_champ_public, :header_section) }
end
end
end