discourse/spec/fabricators/category_fabricator.rb

10 lines
182 B
Ruby

Fabricator(:category) do
name { sequence(:name) { |n| "Amazing Category #{n}" } }
user
end
Fabricator(:diff_category, from: :category) do
name "Different Category"
user
end