Fix factory name for stage tournament

This commit is contained in:
Daniel Schädler 2019-05-23 11:57:48 +02:00
parent 5457d50277
commit 74b345dce4
1 changed files with 2 additions and 2 deletions

View File

@ -5,8 +5,8 @@ require 'rails_helper'
RSpec.describe MatchesController, type: :controller do RSpec.describe MatchesController, type: :controller do
before do before do
@match = create(:match, state: :not_started) @match = create(:match, state: :not_started)
@tournament = create(:group_stage_tournament, stage_count: 3) @tournament = create(:stage_tournament, stage_count: 2)
@running_playoff_match = @tournament.stages.find_by(level: 3).matches.first @running_playoff_match = @tournament.stages.find_by(level: 2).matches.first
@match.match_scores = create_pair(:match_score) @match.match_scores = create_pair(:match_score)
end end