debian-mirror-gitlab/spec/factories/incident_management/timeline_events.rb
2022-07-29 14:03:07 +02:00

23 lines
560 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' }
editable
end
trait :editable do
editable { true }
end
trait :non_editable do
editable { false }
end
end