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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/factories/labels.rb')
-rw-r--r--spec/factories/labels.rb7
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