diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-09-21 17:47:58 -0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-19 14:58:24 -0200 |
commit | e28058c4107ce454a84b3e3b5750f936dace7db1 (patch) | |
tree | 8eb12341289e76b94907a12067ad8dc85b07f71e /spec/factories | |
parent | cfedd42badc6b84457d1de35cb31988777462d5a (diff) | |
download | gitlab-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.rb | 6 |
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 |