Fix uniqueness issues with Faker

This commit is contained in:
Andrew Tomaka 2015-11-20 08:49:32 -05:00
parent b8a526c19f
commit a853facea2

View file

@ -1,6 +1,6 @@
FactoryGirl.define do FactoryGirl.define do
factory :subcreddit do factory :subcreddit do
owner { create(:user) } owner { create(:user) }
name { Faker::Team.name.first(21) } # 21 is the max length...brittle sequence(:name) { |n| Faker::Team.name.first(18) + "#{n}" }
end end
end end