X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/550c4a3a45814fde5c809334c85f1ebc47659a82..ba3d3269e3a08bc0b23d1f1a6584081702c70072:/test/controllers/confirmations_controller_test.rb?ds=sidebyside diff --git a/test/controllers/confirmations_controller_test.rb b/test/controllers/confirmations_controller_test.rb index 1ab4d253e..083619962 100644 --- a/test/controllers/confirmations_controller_test.rb +++ b/test/controllers/confirmations_controller_test.rb @@ -299,8 +299,8 @@ class UsersControllerTest < ActionDispatch::IntegrationTest def test_confirm_email_bad_token post user_confirm_email_path, :params => { :confirm_string => "XXXXX" } - assert_response :success - assert_template :confirm_email + assert_response :redirect + assert_redirected_to edit_account_path assert_match(/confirmation code has expired or does not exist/, flash[:error]) end