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:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-06-03 03:08:38 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-06-03 03:08:38 +0300
commitc4844aea3f98f1c9c41624a3dc0b81201533788a (patch)
tree018c08efc95817262d69684e6a94446859e2e0cb /spec/factories/labels.rb
parent2164573e4531de7949b0ad9fe1d55bfb9c42765d (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories/labels.rb')
-rw-r--r--spec/factories/labels.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/factories/labels.rb b/spec/factories/labels.rb
index 81d3e4be6fd..2e783adcc94 100644
--- a/spec/factories/labels.rb
+++ b/spec/factories/labels.rb
@@ -6,6 +6,18 @@ FactoryBot.define do
color { "#990000" }
end
+ trait :described do
+ description { "Description of #{title}" }
+ end
+
+ trait :scoped do
+ transient do
+ prefix { 'scope' }
+ end
+
+ title { "#{prefix}::#{generate(:label_title)}" }
+ end
+
factory :label, traits: [:base_label], class: 'ProjectLabel' do
project