2020-06-12 17:42:47 +00:00
|
|
|
FactoryBot.define do
|
|
|
|
factory :integrations_hook, class: 'Integrations::Hook' do
|
2021-05-17 05:02:59 +00:00
|
|
|
app_id { 'slack' }
|
2021-05-05 15:36:11 +00:00
|
|
|
inbox
|
|
|
|
account
|
2021-08-03 14:41:52 +00:00
|
|
|
settings { { test: 'test' } }
|
2021-05-17 05:02:59 +00:00
|
|
|
status { Integrations::Hook.statuses['enabled'] }
|
2020-06-12 17:42:47 +00:00
|
|
|
access_token { SecureRandom.hex }
|
|
|
|
reference_id { SecureRandom.hex }
|
2021-05-17 05:02:59 +00:00
|
|
|
|
|
|
|
trait :dialogflow do
|
|
|
|
app_id { 'dialogflow' }
|
|
|
|
settings { { project_id: 'test', credentials: {} } }
|
|
|
|
end
|
2020-06-12 17:42:47 +00:00
|
|
|
end
|
|
|
|
end
|