3988777718
- We were using the attribute name 'channel' to store pubsub tokens, which was confusing. - switched to faker from ffaker - spec for contact.rb
15 lines
271 B
Ruby
15 lines
271 B
Ruby
# frozen_string_literal: true
|
|
|
|
FactoryBot.define do
|
|
factory :contact do
|
|
sequence(:name) { |n| "Widget #{n}" }
|
|
sequence(:email) { |n| "widget-#{n}@example.com" }
|
|
phone_number { "+123456789011" }
|
|
source_id { rand(100) }
|
|
account
|
|
inbox
|
|
end
|
|
end
|
|
|
|
|
|
|