ensl.org/spec/factories/gather.rb

14 lines
228 B
Ruby
Raw Normal View History

FactoryGirl.define do
factory :gather do
association :category, factory: [:category, :game]
end
trait :running do
2015-11-07 06:21:31 +00:00
status Gather::STATE_RUNNING
end
trait :picking do
2015-11-07 06:21:31 +00:00
status Gather::STATE_PICKING
end
end