From 4de6ce03312efcbaa483aa29f93352df64441c44 Mon Sep 17 00:00:00 2001 From: Blade Barringer Date: Thu, 19 Feb 2015 22:05:04 -0600 Subject: [PATCH] Wrote todo about what is wrong with the registerNewUser function --- test/api.mocha.coffee | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/api.mocha.coffee b/test/api.mocha.coffee index 4aa41de977..488f39a87d 100644 --- a/test/api.mocha.coffee +++ b/test/api.mocha.coffee @@ -347,6 +347,14 @@ describe "API", -> (cb) -> async.parallel [ (cb2) -> + # @TODO: The registerNewUser function posts to /api/v2/register + # since superagent-defaults has the user id and token set + # Subsequent calls to registerNewUser are being called with + # the uuid and token that is generated when the initial user is + # made. Instead of creating new users, it updaes the original user + # with a new login name, email and password. That is why + # all the users have the same uuid, because they're not actually + # being created. The original is just being updated. registerNewUser cb2, false (cb2) -> registerNewUser cb2, false