2019-10-12 18:08:41 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
FactoryBot.define do
|
|
|
|
factory :contact do
|
2020-12-11 17:55:00 +00:00
|
|
|
sequence(:name) { |n| "Contact #{n}" }
|
|
|
|
sequence(:email) { |n| "contact-#{n}@example.com" }
|
2019-10-20 08:47:26 +00:00
|
|
|
phone_number { '+123456789011' }
|
2020-02-17 11:38:29 +00:00
|
|
|
avatar { fixture_file_upload(Rails.root.join('spec/assets/avatar.png'), 'image/png') }
|
2019-10-12 18:08:41 +00:00
|
|
|
account
|
|
|
|
end
|
|
|
|
end
|