diff options
author | Christopher Baines <mail@cbaines.net> | 2018-04-03 08:02:17 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-04-03 21:58:55 +0100 |
commit | 39d3f763d3644ac8f6f7274edb11fd1dff1c1ba9 (patch) | |
tree | 971b22205a715e357fa881ef3720e1780b69c27f /test | |
parent | 9e622112a80f493eab53420d7dafedb9dd10a612 (diff) | |
download | govuk-mini-environment-admin-39d3f763d3644ac8f6f7274edb11fd1dff1c1ba9.tar govuk-mini-environment-admin-39d3f763d3644ac8f6f7274edb11fd1dff1c1ba9.tar.gz |
Remove some redundant views
And replace with a redirect and flash message.
Diffstat (limited to 'test')
-rw-r--r-- | test/controllers/que_jobs_controller_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |