2016-06-09 12:08:18 +02:00
|
|
|
FactoryGirl.define do
|
|
|
|
factory :champ do
|
2017-06-09 12:04:16 +02:00
|
|
|
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
|
2017-10-03 15:08:39 +02:00
|
|
|
|
|
|
|
trait :explication do
|
|
|
|
type_de_champ { FactoryGirl.create(:type_de_champ_public, :explication) }
|
|
|
|
end
|
2016-06-09 12:08:18 +02:00
|
|
|
end
|
|
|
|
end
|