diff options
Diffstat (limited to 'spec/factories/labels.rb')
-rw-r--r-- | spec/factories/labels.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/factories/labels.rb b/spec/factories/labels.rb index 6725b571f19..a9a9416c48b 100644 --- a/spec/factories/labels.rb +++ b/spec/factories/labels.rb @@ -18,6 +18,13 @@ FactoryBot.define do title { "#{prefix}::#{generate(:label_title)}" } end + trait :incident do + properties = IncidentManagement::CreateIncidentLabelService::LABEL_PROPERTIES + title { properties.fetch(:title) } + description { properties.fetch(:description) } + color { properties.fetch(:color) } + end + factory :label, traits: [:base_label], class: 'ProjectLabel' do project |