diff options
author | Douwe Maan <douwe@selenight.nl> | 2016-04-26 17:31:19 +0200 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2016-04-26 17:31:19 +0200 |
commit | 4375b65f880e2bb904d1637b0f631edf7f6eaae5 (patch) | |
tree | 283983b2b6d0197477a965ac998911677d676cee /spec | |
parent | f65a4af397c78f9c5d446b6016456bc14916d67e (diff) | |
download | gitlab-ce-4375b65f880e2bb904d1637b0f631edf7f6eaae5.tar.gz |
Use sequence in label factory to get around uniqueness error
Diffstat (limited to 'spec')
-rw-r--r-- | spec/factories/labels.rb | 2 |
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 |