demarches-normaliennes/spec/factories/administrateur.rb
2018-01-23 17:15:42 +01:00

7 lines
194 B
Ruby

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