From: Andy Allan Date: Wed, 15 Mar 2017 14:22:04 +0000 (+0000) Subject: Use a pending user for testing password resets. X-Git-Tag: live~3491^2 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/8d2d6e1a521e4d7759158cd423d6b0bb746a511f?ds=inline Use a pending user for testing password resets. --- diff --git a/test/controllers/user_controller_test.rb b/test/controllers/user_controller_test.rb index 0e21f1d67..3232b9e2e 100644 --- a/test/controllers/user_controller_test.rb +++ b/test/controllers/user_controller_test.rb @@ -733,7 +733,7 @@ class UserControllerTest < ActionController::TestCase end def test_reset_password - user = create(:user) + user = create(:user, :pending) # Test a request with no token get :reset_password assert_response :bad_request