This repository has been archived on 2023-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
2019-08-11 00:23:12 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
FactoryBot.define do
|
|
|
|
factory :some_contact, class: Contact do
|
|
|
|
association :contact_list, factory: :empty_contact_list
|
|
|
|
association :contact_network
|
|
|
|
|
|
|
|
value { Faker::Internet.username }
|
|
|
|
end
|
2019-09-04 17:44:12 +00:00
|
|
|
|
|
|
|
factory :email_contact, parent: :some_contact do
|
|
|
|
association :contact_network, factory: :email_contact_network
|
|
|
|
|
|
|
|
value { Faker::Internet.email }
|
|
|
|
end
|
|
|
|
|
|
|
|
factory :phone_contact, parent: :some_contact do
|
|
|
|
association :contact_network, factory: :phone_contact_network
|
|
|
|
|
|
|
|
value { Faker::PhoneNumber.cell_phone_with_country_code }
|
|
|
|
end
|
2019-08-11 00:23:12 +00:00
|
|
|
end
|