Unify :type_de_champ public/private factories

This commit is contained in:
Paul Chavard 2018-02-13 17:00:19 +01:00
parent 31d638ae2a
commit 0c1d529b61
32 changed files with 125 additions and 134 deletions

View file

@ -1,21 +1,21 @@
FactoryBot.define do
factory :champ do
type_de_champ { FactoryBot.create(:type_de_champ_public) }
type_de_champ { FactoryBot.create(:type_de_champ) }
trait :checkbox do
type_de_champ { FactoryBot.create(:type_de_champ_public, :checkbox) }
type_de_champ { FactoryBot.create(:type_de_champ, :checkbox) }
end
trait :header_section do
type_de_champ { FactoryBot.create(:type_de_champ_public, :header_section) }
type_de_champ { FactoryBot.create(:type_de_champ, :header_section) }
end
trait :explication do
type_de_champ { FactoryBot.create(:type_de_champ_public, :explication) }
type_de_champ { FactoryBot.create(:type_de_champ, :explication) }
end
trait :dossier_link do
type_de_champ { FactoryBot.create(:type_de_champ_public, :type_dossier_link) }
type_de_champ { FactoryBot.create(:type_de_champ, :type_dossier_link) }
end
end
end