2ebd38c3b7
- API to fetch info of a single inbox - Document passing custom_attributes in the API - Ability to filter contacts with contact identifier in search API
17 lines
424 B
Ruby
17 lines
424 B
Ruby
# frozen_string_literal: true
|
|
|
|
FactoryBot.define do
|
|
factory :contact do
|
|
sequence(:name) { |n| "Contact #{n}" }
|
|
avatar { fixture_file_upload(Rails.root.join('spec/assets/avatar.png'), 'image/png') }
|
|
account
|
|
|
|
trait :with_email do
|
|
sequence(:email) { |n| "contact-#{n}@example.com" }
|
|
end
|
|
|
|
trait :with_phone_number do
|
|
phone_number { Faker::PhoneNumber.cell_phone_in_e164 }
|
|
end
|
|
end
|
|
end
|