scinote-web/spec/factories/users.rb

11 lines
226 B
Ruby
Raw Normal View History

FactoryBot.define do
2017-08-30 00:49:07 +08:00
factory :user do
full_name 'admin'
initials 'AD'
2018-08-07 20:52:30 +08:00
email Faker::Internet.unique.email
2017-08-30 00:49:07 +08:00
password 'asdf1243'
password_confirmation 'asdf1243'
2018-04-25 17:00:22 +08:00
current_sign_in_at DateTime.now
2017-08-30 00:49:07 +08:00
end
end