From c846df9d4e7c49c9ace735f7afefd77b6f98d7a7 Mon Sep 17 00:00:00 2001 From: Malaber <32635600+Malaber@users.noreply.github.com> Date: Mon, 13 May 2019 11:05:06 +0200 Subject: [PATCH] fixup test stop match method numero dos --- spec/controllers/matches_controller_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/controllers/matches_controller_spec.rb b/spec/controllers/matches_controller_spec.rb index 041f899..c369882 100644 --- a/spec/controllers/matches_controller_spec.rb +++ b/spec/controllers/matches_controller_spec.rb @@ -82,6 +82,8 @@ RSpec.describe MatchesController, type: :controller do context 'stops the match' 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) @running_playoff_match.reload end