15 lines
442 B
Ruby
15 lines
442 B
Ruby
|
# 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
|