Chatwoot/spec/factories/integrations/hooks.rb

17 lines
424 B
Ruby
Raw Normal View History

FactoryBot.define do
factory :integrations_hook, class: 'Integrations::Hook' do
app_id { 'slack' }
inbox
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