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:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-09-21 23:47:58 +0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-10-19 19:58:24 +0300
commite28058c4107ce454a84b3e3b5750f936dace7db1 (patch)
tree8eb12341289e76b94907a12067ad8dc85b07f71e /spec/factories/labels.rb
parentcfedd42badc6b84457d1de35cb31988777462d5a (diff)
Validate if project label title does not exist at group level
Diffstat (limited to 'spec/factories/labels.rb')
-rw-r--r--spec/factories/labels.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/factories/labels.rb b/spec/factories/labels.rb
index ec4c56457ea..5c789d72bac 100644
--- a/spec/factories/labels.rb
+++ b/spec/factories/labels.rb
@@ -4,4 +4,10 @@ FactoryGirl.define do
color "#990000"
project
end
+
+ factory :group_label, class: GroupLabel do
+ sequence(:title) { |n| "label#{n}" }
+ color "#990000"
+ group
+ end
end