scinote-web/spec/factories/users.rb

13 lines
271 B
Ruby
Raw Normal View History

2019-01-10 01:30:33 +08:00
# frozen_string_literal: true
FactoryBot.define do
2017-08-30 00:49:07 +08:00
factory :user do
full_name 'admin'
initials 'AD'
2019-01-10 01:30:33 +08:00
sequence(:email) { |n| "user-#{n}@example.com" }
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