demarches-normaliennes/spec/factories/administrateur.rb
2018-09-04 16:46:48 +02:00

7 lines
198 B
Ruby

FactoryBot.define do
sequence(:administrateur_email) { |n| "admin#{n}@admin.com" }
factory :administrateur do
email { generate(:administrateur_email) }
password { 'password' }
end
end