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