Chatwoot/spec/factories/integrations/hooks.rb
Muhsin Keloth cf5f6d5a74
feat: enable Dialogflow integration all inboxes except email (#3285)
Fixes #2461

Co-authored-by: Sojan Jose <sojan@pepalo.com>
2021-11-12 17:53:03 +05:30

15 lines
414 B
Ruby

FactoryBot.define do
factory :integrations_hook, class: 'Integrations::Hook' do
app_id { 'slack' }
account
settings { { test: 'test' } }
status { Integrations::Hook.statuses['enabled'] }
access_token { SecureRandom.hex }
reference_id { SecureRandom.hex }
trait :dialogflow do
app_id { 'dialogflow' }
settings { { project_id: 'test', credentials: {} } }
end
end
end