Add position to all matches

This commit is contained in:
Daniel Schädler 2019-05-10 13:14:44 +02:00
parent 533929421b
commit d1338eaadb
1 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,7 @@
FactoryBot.define do FactoryBot.define do
factory :playoff_match, aliases: [:match], class: Match do factory :playoff_match, aliases: [:match], class: Match do
stage stage
position { 0 }
factory :running_playoff_match do factory :running_playoff_match do
transient do transient do
match_scores_count { 2 } match_scores_count { 2 }
@ -31,6 +32,7 @@ FactoryBot.define do
factory :group_match, class: Match do factory :group_match, class: Match do
group group
position { 0 }
factory :running_group_match do factory :running_group_match do
transient do transient do
match_scores_count { 2 } match_scores_count { 2 }