From 74b345dce4dd7f49be96f390fe199e7c1004278e Mon Sep 17 00:00:00 2001 From: Malaber <32635600+Malaber@users.noreply.github.com> Date: Thu, 23 May 2019 11:57:48 +0200 Subject: [PATCH] Fix factory name for stage tournament --- spec/controllers/matches_controller_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/controllers/matches_controller_spec.rb b/spec/controllers/matches_controller_spec.rb index 74f2da5..63e6abc 100644 --- a/spec/controllers/matches_controller_spec.rb +++ b/spec/controllers/matches_controller_spec.rb @@ -5,8 +5,8 @@ require 'rails_helper' RSpec.describe MatchesController, type: :controller do before do @match = create(:match, state: :not_started) - @tournament = create(:group_stage_tournament, stage_count: 3) - @running_playoff_match = @tournament.stages.find_by(level: 3).matches.first + @tournament = create(:stage_tournament, stage_count: 2) + @running_playoff_match = @tournament.stages.find_by(level: 2).matches.first @match.match_scores = create_pair(:match_score) end