ensl.org/spec/factories/match.rb

14 lines
234 B
Ruby
Raw Permalink Normal View History

2015-11-07 06:21:09 +00:00
FactoryGirl.define do
factory :match do
contest
contester1 do
create(:contester, contest: contest)
end
contester2 do
create(:contester, contest: contest)
end
match_time 1.hour.from_now
end
end