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