demarches-normaliennes/spec/factories/champ.rb

14 lines
346 B
Ruby
Raw Normal View History

FactoryGirl.define do
factory :champ do
type_de_champ { FactoryGirl.create(:type_de_champ_public) }
2017-07-11 16:50:29 +02:00
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