summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2016-04-26 17:31:19 +0200
committerDouwe Maan <douwe@selenight.nl>2016-04-26 17:31:19 +0200
commit4375b65f880e2bb904d1637b0f631edf7f6eaae5 (patch)
tree283983b2b6d0197477a965ac998911677d676cee /spec
parentf65a4af397c78f9c5d446b6016456bc14916d67e (diff)
downloadgitlab-ce-4375b65f880e2bb904d1637b0f631edf7f6eaae5.tar.gz
Use sequence in label factory to get around uniqueness error
Diffstat (limited to 'spec')
-rw-r--r--spec/factories/labels.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/factories/labels.rb b/spec/factories/labels.rb
index 8b12ee11af5..3b643237574 100644
--- a/spec/factories/labels.rb
+++ b/spec/factories/labels.rb
@@ -15,7 +15,7 @@
FactoryGirl.define do
factory :label do
- title "Bug"
+ sequence(:title) { |n| "bug-#{n}" }
color "#990000"
project
end