X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/20f08f2543aebd1be5916487761828a459a1b1f7..49cde0e9013848d2d3bd33f19fe106296505b6b2:/test/controllers/confirmations_controller_test.rb 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