fixup test stop method match
This commit is contained in:
parent
5df8714124
commit
9b5d4646a8
|
|
@ -92,7 +92,8 @@ RSpec.describe MatchesController, type: :controller do
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'fills the match below' do
|
it 'fills the match below' do
|
||||||
match_below = @tournament.stages.find { |s| s.level == 2 }.matches.find { |m| m.position == @running_playoff_match.position / 2 }.reload
|
match_below = @tournament.stages.find { |s| s.level == 2 }.matches
|
||||||
|
.find { |m| m.position == @running_playoff_match.position / 2 }.reload
|
||||||
expect(match_below.teams).to include(@running_playoff_match.winner)
|
expect(match_below.teams).to include(@running_playoff_match.winner)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue