factory_girl is now factory_bot

This commit is contained in:
gregoirenovel 2018-01-23 17:15:42 +01:00
parent 5eb4f12b48
commit a2f4e8b283
40 changed files with 72 additions and 72 deletions

View file

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