creddit/spec/factories/subcreddit_factory.rb

7 lines
149 B
Ruby
Raw Normal View History

FactoryGirl.define do
factory :subcreddit do
owner { create(:user) }
2015-11-20 08:49:32 -05:00
sequence(:name) { |n| Faker::Team.name.first(18) + "#{n}" }
end
end