Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/factories/incident_management/timeline_events.rb')
-rw-r--r--spec/factories/incident_management/timeline_events.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/factories/incident_management/timeline_events.rb b/spec/factories/incident_management/timeline_events.rb
new file mode 100644
index 00000000000..e2e216d24b8
--- /dev/null
+++ b/spec/factories/incident_management/timeline_events.rb
@@ -0,0 +1,14 @@
+# frozen_string_literal: true
+
+FactoryBot.define do
+ factory :incident_management_timeline_event, class: 'IncidentManagement::TimelineEvent' do
+ association :project
+ association :author, factory: :user
+ association :incident
+ association :promoted_from_note, factory: :note
+ occurred_at { Time.current }
+ note { 'timeline created' }
+ note_html { '<strong>timeline created</strong>' }
+ action { 'comment' }
+ end
+end