From 39d3f763d3644ac8f6f7274edb11fd1dff1c1ba9 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Tue, 3 Apr 2018 08:02:17 +0100 Subject: Remove some redundant views And replace with a redirect and flash message. --- test/controllers/que_jobs_controller_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/controllers/que_jobs_controller_test.rb b/test/controllers/que_jobs_controller_test.rb index f5821e3..9cab867 100644 --- a/test/controllers/que_jobs_controller_test.rb +++ b/test/controllers/que_jobs_controller_test.rb @@ -10,7 +10,7 @@ class QueJobsControllerTest < ActionDispatch::IntegrationTest post cancel_que_job_path(job.attrs['job_id']) - assert_response :success + assert_response :redirect end test 'retry now' do @@ -18,6 +18,6 @@ class QueJobsControllerTest < ActionDispatch::IntegrationTest post retry_now_que_job_path(job.attrs['job_id']) - assert_response :success + assert_response :redirect end end -- cgit v1.2.3