summaryrefslogtreecommitdiff
path: root/spec/factories
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-09-21 17:47:58 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-10-19 14:58:24 -0200
commite28058c4107ce454a84b3e3b5750f936dace7db1 (patch)
tree8eb12341289e76b94907a12067ad8dc85b07f71e /spec/factories
parentcfedd42badc6b84457d1de35cb31988777462d5a (diff)
downloadgitlab-ce-e28058c4107ce454a84b3e3b5750f936dace7db1.tar.gz
Validate if project label title does not exist at group level
Diffstat (limited to 'spec/factories')
-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