diff --git a/spec/controllers/matches_controller_spec.rb b/spec/controllers/matches_controller_spec.rb index f50e67a..7606be1 100644 --- a/spec/controllers/matches_controller_spec.rb +++ b/spec/controllers/matches_controller_spec.rb @@ -73,7 +73,7 @@ RSpec.describe MatchesController, type: :controller do before do @running_playoff_match.match_scores.each_with_index do |ms, i| ms.points = i - ms.save + ms.save! end put :update, params: { id: @running_playoff_match.to_param }.merge(finished) @running_playoff_match.reload