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