2020-04-05 16:41:27 +00:00
|
|
|
FactoryBot.define do
|
|
|
|
factory :channel_twilio_sms, class: 'Channel::TwilioSms' do
|
|
|
|
auth_token { SecureRandom.uuid }
|
|
|
|
account_sid { SecureRandom.uuid }
|
|
|
|
sequence(:phone_number) { |n| "+123456789#{n}1" }
|
2020-04-29 20:11:13 +00:00
|
|
|
medium { :sms }
|
2020-04-05 16:41:27 +00:00
|
|
|
account
|
2021-02-03 13:54:51 +00:00
|
|
|
after(:build) do |channel|
|
|
|
|
channel.inbox ||= create(:inbox, account: channel.account)
|
|
|
|
end
|
2020-04-05 16:41:27 +00:00
|
|
|
end
|
|
|
|
end
|