fixup test stop method match

This commit is contained in:
Daniel Schädler 2019-05-13 09:35:44 +02:00
parent 5df8714124
commit 9b5d4646a8
1 changed files with 2 additions and 1 deletions

View File

@ -92,7 +92,8 @@ RSpec.describe MatchesController, type: :controller do
end
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)
end
end