1
0
Fork 0
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.
lpr-partynest/factories/contacts.rb

23 lines
586 B
Ruby

# 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
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
end