From 06d69d8eb819b56dc04b6e4544dc76c3f9cd68e2 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Fri, 23 Jun 2023 21:52:15 +0200 Subject: [PATCH] Explicitly disable feedback in submit test scenarios --- spec/controllers/exercises_controller_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/controllers/exercises_controller_spec.rb b/spec/controllers/exercises_controller_spec.rb index 2c653210..c3feaa38 100644 --- a/spec/controllers/exercises_controller_spec.rb +++ b/spec/controllers/exercises_controller_spec.rb @@ -316,6 +316,7 @@ describe ExercisesController do submission = build(:submission, exercise:, user:) allow(submission).to receive(:normalized_score).and_return(1) allow(submission).to receive(:calculate_score).and_return(scoring_response) + allow(submission).to receive(:redirect_to_feedback?).and_return(false) allow(Submission).to receive(:create).and_return(submission) end