Force save match_scores
This commit is contained in:
parent
6f44823bc6
commit
537cccfa9e
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue