mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
15 lines
281 B
Ruby
15 lines
281 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
|
|
|
|
Fabricator(:happy_category, from: :category) do
|
|
name 'Happy Category'
|
|
slug 'happy'
|
|
user
|
|
end
|