From 990361a25b8a1152577e44acaab61c82a62b375c Mon Sep 17 00:00:00 2001 From: Malaber <32635600+Malaber@users.noreply.github.com> Date: Mon, 27 May 2019 13:25:14 +0200 Subject: [PATCH] Fix comparison that got lost in refactoring --- spec/factories/tournaments.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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|