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

timeline_events.rb « incident_management « factories « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e2e216d24b87afbdd0fd6b1e7e09f7ec97cb6198 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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