Fix comparison that got lost in refactoring

This commit is contained in:
Daniel Schädler 2019-05-27 13:25:14 +02:00
parent a710addde7
commit 990361a25b
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ FactoryBot.define do
:playoff_stage,
level: level,
match_count: -1,
match_type: evaluator.stage_count ? :running_playoff_match : :empty_prepared_playoff_match
match_type: level == evaluator.stage_count ? :running_playoff_match : :empty_prepared_playoff_match
)
tournament.stages.each do |stage|
stage.matches.each_with_index do |match, i|