diff --git a/spec/factories/tournaments.rb b/spec/factories/tournaments.rb index 626a552..637564c 100644 --- a/spec/factories/tournaments.rb +++ b/spec/factories/tournaments.rb @@ -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|