Fix factory name for stage tournament
This commit is contained in:
parent
5457d50277
commit
74b345dce4
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue