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

8 lines
200 B
Ruby

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