From 0a13299fcad43471f38f6662c6c4a01076f87be0 Mon Sep 17 00:00:00 2001 From: Malaber <32635600+Malaber@users.noreply.github.com> Date: Tue, 16 Apr 2019 20:18:34 +0200 Subject: [PATCH] Run tests with a match_score that is part of a match --- spec/controllers/match_scores_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/controllers/match_scores_controller_spec.rb b/spec/controllers/match_scores_controller_spec.rb index 67f9b1a..1d35d28 100644 --- a/spec/controllers/match_scores_controller_spec.rb +++ b/spec/controllers/match_scores_controller_spec.rb @@ -4,7 +4,7 @@ require 'rails_helper' RSpec.describe MatchScoresController, type: :controller do before do - @match_score = create(:match_score) + @match_score = create(:running_playoff_match).match_scores.first @owner = @match_score.owner end