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
|
|
|
|
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
|