Use a pending user for testing password resets.

This commit is contained in:
Andy Allan 2017-03-15 14:22:04 +00:00
parent 3d8dc64b9c
commit 8d2d6e1a52

View file

@ -733,7 +733,7 @@ class UserControllerTest < ActionController::TestCase
end end
def test_reset_password def test_reset_password
user = create(:user) user = create(:user, :pending)
# Test a request with no token # Test a request with no token
get :reset_password get :reset_password
assert_response :bad_request assert_response :bad_request