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