diff options
Diffstat (limited to 'spec/factories/incident_management')
-rw-r--r-- | spec/factories/incident_management/timeline_event_tag_links.rb | 8 | ||||
-rw-r--r-- | spec/factories/incident_management/timeline_event_tags.rb | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/spec/factories/incident_management/timeline_event_tag_links.rb b/spec/factories/incident_management/timeline_event_tag_links.rb new file mode 100644 index 00000000000..883aca29f99 --- /dev/null +++ b/spec/factories/incident_management/timeline_event_tag_links.rb @@ -0,0 +1,8 @@ +# frozen_string_literal: true + +FactoryBot.define do + factory :incident_management_timeline_event_tag_link, class: 'IncidentManagement::TimelineEventTagLink' do + association :timeline_event_tag, factory: :incident_management_timeline_event_tag + association :timeline_event, factory: :incident_management_timeline_event + end +end diff --git a/spec/factories/incident_management/timeline_event_tags.rb b/spec/factories/incident_management/timeline_event_tags.rb new file mode 100644 index 00000000000..6333872ee4f --- /dev/null +++ b/spec/factories/incident_management/timeline_event_tags.rb @@ -0,0 +1,8 @@ +# frozen_string_literal: true + +FactoryBot.define do + factory :incident_management_timeline_event_tag, class: 'IncidentManagement::TimelineEventTag' do + project + name { 'Start time' } + end +end |