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