[openstreetmap/openstreetmap-website] User factory for user_controller tests (#1488)

Tom Hughes notifications at github.com
Wed Mar 15 12:38:31 UTC 2017


tomhughes requested changes on this pull request.



>      ActionMailer::Base.deliveries.clear
   end
 
   def test_reset_password
+    user = create(:user)

This needs a `:pending` as it was using the inactive user before and part of the test is checking that doing a password reset on a pending user activates the user as a side-effect.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/1488#pullrequestreview-27060219
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20170315/6d878458/attachment.html>


More information about the rails-dev mailing list