Chatwoot/spec/factories/integrations/hooks.rb

13 lines
360 B
Ruby
Raw Normal View History

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