Chatwoot/spec/factories/integrations/hooks.rb
Sojan Jose d5215fea93
feat: APIs for Integration Hooks (#2250)
- Introduces JSON Schema validations via JSONSchemer
- Add CRUD APIs for integration hooks
2021-05-17 10:32:59 +05:30

16 lines
426 B
Ruby

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