mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 04:51:14 +00:00
18 lines
308 B
Ruby
Executable file
18 lines
308 B
Ruby
Executable file
FactoryBot.define do
|
|
factory :category do
|
|
sequence(:name) { |n| "Category #{n}" }
|
|
sequence(:sort) { |n| n }
|
|
end
|
|
|
|
trait :news do
|
|
domain { Category::DOMAIN_NEWS }
|
|
end
|
|
|
|
trait :game do
|
|
domain Category::DOMAIN_GAMES
|
|
end
|
|
|
|
trait :forums do
|
|
domain Category::DOMAIN_FORUMS
|
|
end
|
|
end
|