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-04 21:05:57 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
FactoryBot.define do
|
2019-09-04 17:24:16 +00:00
|
|
|
factory :contact_network do
|
2019-09-02 19:31:56 +00:00
|
|
|
codename { Faker::Internet.unique.username 3..36, %w[_] }
|
2019-08-18 00:00:37 +00:00
|
|
|
name { Faker::Company.unique.name }
|
2020-04-10 02:15:48 +00:00
|
|
|
link { nil }
|
2019-08-04 21:05:57 +00:00
|
|
|
end
|
2019-09-04 17:24:16 +00:00
|
|
|
|
|
|
|
factory :email_contact_network, class: ContactNetwork do
|
|
|
|
initialize_with do
|
|
|
|
ContactNetwork.find_or_initialize_by codename: 'email'
|
|
|
|
end
|
|
|
|
|
|
|
|
codename { 'email' }
|
|
|
|
name { 'Email' }
|
2020-04-10 02:15:48 +00:00
|
|
|
link { 'mailto:$$' }
|
2019-09-04 17:24:16 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
factory :phone_contact_network, class: ContactNetwork do
|
|
|
|
initialize_with do
|
|
|
|
ContactNetwork.find_or_initialize_by codename: 'phone'
|
|
|
|
end
|
|
|
|
|
|
|
|
codename { 'phone' }
|
|
|
|
name { 'Phone' }
|
2020-04-10 02:15:48 +00:00
|
|
|
link { nil }
|
2019-09-04 17:24:16 +00:00
|
|
|
end
|
2019-08-04 21:05:57 +00:00
|
|
|
end
|