diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-03 00:08:38 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-03 00:08:38 +0000 |
commit | c4844aea3f98f1c9c41624a3dc0b81201533788a (patch) | |
tree | 018c08efc95817262d69684e6a94446859e2e0cb /spec/factories | |
parent | 2164573e4531de7949b0ad9fe1d55bfb9c42765d (diff) | |
download | gitlab-ce-c4844aea3f98f1c9c41624a3dc0b81201533788a.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/labels.rb | 12 |
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 |