]> git.openstreetmap.org Git - rails.git/commitdiff
Use a pending user for testing password resets.
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 15 Mar 2017 14:22:04 +0000 (14:22 +0000)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 15 Mar 2017 14:22:04 +0000 (14:22 +0000)
test/controllers/user_controller_test.rb

index 0e21f1d6729f2fd26c2632e3ef1289093d4e4b5f..3232b9e2ed50e293ff6ba9b1274c214b252e7505 100644 (file)
@@ -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