This repository has been archived on 2023-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
2018-11-29 20:57:57 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
FactoryBot.define do
|
|
|
|
factory :user do
|
2018-12-06 01:56:52 +00:00
|
|
|
association :account, factory: :guest_account
|
2018-12-05 00:30:22 +00:00
|
|
|
|
2018-11-29 20:57:57 +00:00
|
|
|
email { Faker::Internet.email }
|
|
|
|
password { Faker::Internet.password }
|
2018-11-30 23:05:05 +00:00
|
|
|
password_confirmation { password }
|
2018-12-03 17:58:39 +00:00
|
|
|
|
|
|
|
after :create do |user, _evaluator|
|
|
|
|
user.confirm
|
|
|
|
end
|
2018-11-29 20:57:57 +00:00
|
|
|
end
|
|
|
|
end
|