discourse/spec/fabricators/category_fabricator.rb

10 lines
182 B
Ruby
Raw Normal View History

2013-02-05 14:16:51 -05:00
Fabricator(:category) do
name { sequence(:name) { |n| "Amazing Category #{n}" } }
2013-02-05 14:16:51 -05:00
user
end
Fabricator(:diff_category, from: :category) do
name "Different Category"
user
end