Force save match_scores

This commit is contained in:
Daniel Schädler 2019-05-26 20:08:04 +02:00
parent 6f44823bc6
commit 537cccfa9e
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ RSpec.describe MatchesController, type: :controller do
before do before do
@running_playoff_match.match_scores.each_with_index do |ms, i| @running_playoff_match.match_scores.each_with_index do |ms, i|
ms.points = i ms.points = i
ms.save ms.save!
end end
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