demarches-normaliennes/spec/factories/user.rb

9 lines
200 B
Ruby
Raw Normal View History

2018-01-23 17:15:42 +01:00
FactoryBot.define do
2017-06-01 17:44:56 +02:00
sequence(:user_email) { |n| "user#{n}@user.com" }
2015-09-23 10:02:01 +02:00
factory :user do
email { generate(:user_email) }
2018-09-04 16:46:48 +02:00
password { 'password' }
confirmed_at { DateTime.now }
2015-09-23 10:02:01 +02:00
end
2017-04-04 15:27:04 +02:00
end