demarches-normaliennes/spec/factories/user.rb
2019-08-01 17:12:14 +02:00

12 lines
282 B
Ruby

FactoryBot.define do
sequence(:user_email) { |n| "user#{n}@user.com" }
factory :user do
email { generate(:user_email) }
password { 'démarches-simplifiées-pwd' }
confirmed_at { Time.zone.now }
trait :unconfirmed do
confirmed_at { nil }
end
end
end