Chatwoot/spec/factories/contacts.rb
Sojan Jose 3988777718
Refactoring the code for pub sub (#155)
- We were using the attribute name 'channel' to store pubsub tokens, which was confusing.
- switched to faker from ffaker
- spec for contact.rb
2019-10-17 03:18:07 +05:30

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