0
0
Fork 0
mirror of https://github.com/ENSL/ensl.org.git synced 2025-01-19 16:01:26 +00:00
ensl.org/spec/factories/contest.rb

11 lines
214 B
Ruby
Raw Normal View History

FactoryBot.define do
2015-11-07 06:21:09 +00:00
factory :contest do
sequence(:name) { |n| "Contest ##{n}" }
start Date.yesterday
self.end Date.tomorrow
status Contest::STATUS_PROGRESS
default_time "12:00:00"
end
end