scinote-web/spec/factories/users.rb

13 lines
291 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" }
password { 'asdf1243' }
password_confirmation { 'asdf1243' }
current_sign_in_at { DateTime.now }
2017-08-30 00:49:07 +08:00
end
end