2023-02-22 11:55:31 +11:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-03-13 06:47:22 +11:00
|
|
|
Fabricator(:user) do
|
2024-05-31 19:54:11 +10:00
|
|
|
account do |attrs|
|
|
|
|
Fabricate.build(
|
|
|
|
:account,
|
|
|
|
attrs.fetch(:account_attributes, {}).merge(user: nil)
|
|
|
|
)
|
|
|
|
end
|
2017-05-21 01:09:40 +10:00
|
|
|
email { sequence(:email) { |i| "#{i}#{Faker::Internet.email}" } }
|
2023-02-19 09:38:14 +11:00
|
|
|
password '123456789'
|
2018-10-08 13:50:11 +11:00
|
|
|
confirmed_at { Time.zone.now }
|
2023-03-02 20:05:05 +11:00
|
|
|
current_sign_in_at { Time.zone.now }
|
|
|
|
agreement true
|
2016-03-13 06:47:22 +11:00
|
|
|
end
|