From 521067d4c07f2967fbee53dd9873037aa3c0d682 Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Tue, 14 Jan 2020 14:54:08 -0500 Subject: [PATCH] Fixed tests for calculating team scores --- test/controllers/tournaments_controller_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/controllers/tournaments_controller_test.rb b/test/controllers/tournaments_controller_test.rb index 06918ad..43e1c8a 100644 --- a/test/controllers/tournaments_controller_test.rb +++ b/test/controllers/tournaments_controller_test.rb @@ -374,13 +374,13 @@ class TournamentsControllerTest < ActionController::TestCase test "logged in tournament owner can calculate team scores" do sign_in_owner post :calculate_team_scores, params: { id: 1 } - success + assert_redirected_to "/tournaments/#{@tournament.id}" end test "logged in tournament delegate can calculate team scores" do sign_in_delegate post :calculate_team_scores, params: { id: 1 } - success + assert_redirected_to "/tournaments/#{@tournament.id}" end test "logged in non tournament owner cannot calculate team scores" do