From 9b5d4646a8f3bdba98579bd62b5aa78bcd273d70 Mon Sep 17 00:00:00 2001 From: Malaber <32635600+Malaber@users.noreply.github.com> Date: Mon, 13 May 2019 09:35:44 +0200 Subject: [PATCH] fixup test stop method match --- spec/controllers/matches_controller_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/controllers/matches_controller_spec.rb b/spec/controllers/matches_controller_spec.rb index b5116bd..041f899 100644 --- a/spec/controllers/matches_controller_spec.rb +++ b/spec/controllers/matches_controller_spec.rb @@ -92,7 +92,8 @@ RSpec.describe MatchesController, type: :controller do end it 'fills the match below' do - match_below = @tournament.stages.find { |s| s.level == 2 }.matches.find { |m| m.position == @running_playoff_match.position / 2 }.reload + match_below = @tournament.stages.find { |s| s.level == 2 }.matches + .find { |m| m.position == @running_playoff_match.position / 2 }.reload expect(match_below.teams).to include(@running_playoff_match.winner) end end