Restructure omni services and add Chatwoot research snapshot
This commit is contained in:
9
research/chatwoot/spec/factories/channel/channel_api.rb
Normal file
9
research/chatwoot/spec/factories/channel/channel_api.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
FactoryBot.define do
|
||||
factory :channel_api, class: 'Channel::Api' do
|
||||
webhook_url { 'http://example.com' }
|
||||
account
|
||||
after(:create) do |channel_api|
|
||||
create(:inbox, channel: channel_api, account: channel_api.account)
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user