Chatwoot/spec/factories/contacts.rb

11 lines
345 B
Ruby

# frozen_string_literal: true
FactoryBot.define do
factory :contact do
sequence(:name) { |n| "Contact #{n}" }
sequence(:email) { |n| "contact-#{n}@example.com" }
phone_number { Faker::PhoneNumber.cell_phone_in_e164 }
avatar { fixture_file_upload(Rails.root.join('spec/assets/avatar.png'), 'image/png') }
account
end
end