fixup test stop match method numero dos

This commit is contained in:
Daniel Schädler 2019-05-13 11:05:06 +02:00
parent 16a38d141d
commit c846df9d4e
1 changed files with 2 additions and 0 deletions

View File

@ -82,6 +82,8 @@ RSpec.describe MatchesController, type: :controller do
context 'stops the match' do context 'stops the match' do
before do before do
@running_playoff_match.match_scores.each_with_index { |ms, i| ms.points = i}
@running_playoff_match.save
put :update, params: { id: @running_playoff_match.to_param }.merge(finished) put :update, params: { id: @running_playoff_match.to_param }.merge(finished)
@running_playoff_match.reload @running_playoff_match.reload
end end