Use sequence in label factory to get around uniqueness error

This commit is contained in:
Douwe Maan
2016-04-26 17:31:19 +02:00
parent f65a4af397
commit 4375b65f88
+1 -1
View File
@@ -15,7 +15,7 @@
FactoryGirl.define do
factory :label do
title "Bug"
sequence(:title) { |n| "bug-#{n}" }
color "#990000"
project
end