ensl.org/spec/factories/category.rb
2015-11-07 06:21:31 +00:00

14 lines
244 B
Ruby
Executable file

FactoryGirl.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
end