demarches-normaliennes/spec/factories/user.rb
2018-11-06 18:24:34 +01:00

12 lines
263 B
Ruby

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