debian-mirror-gitlab/spec/factories/incident_management/timeline_events.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
560 B
Ruby
Raw Normal View History

2022-07-16 23:28:13 +05:30
# 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' }
2022-07-23 23:45:48 +05:30
editable
end
trait :editable do
editable { true }
end
trait :non_editable do
editable { false }
2022-07-16 23:28:13 +05:30
end
end