* feat: add sla events table * chore: refactor to EE namespace * chore: refactor * chore: fix spec * chore: add references to account,inbox,sla_policy * chore: update specs * chore: update spec to check backfilling id's * Update spec/enterprise/models/sla_event_spec.rb
11 lines
225 B
Ruby
11 lines
225 B
Ruby
FactoryBot.define do
|
|
factory :sla_event do
|
|
applied_sla
|
|
conversation
|
|
event_type { 'frt' }
|
|
account { conversation.account }
|
|
inbox { conversation.inbox }
|
|
sla_policy { applied_sla.sla_policy }
|
|
end
|
|
end
|