 
         ->
           # setting a different username, email will be duplicate
-          userInfo.username = TestHelper.getRandomString()
+          userInfo.username = generateRandomString()
           expectedError     = "Sorry, \"#{userInfo.email}\" is already in use!"
 
           JUser.createUser userInfo, (err) ->


  describe '#createUser', ->

    beforeEach ->

      userInfo = TestHelper.getUserInfo()


    it 'should pass error passwordStatus type is not valid', (done) ->


    it 'should be to able login user when data is valid', (done) ->

      # variables needed in the login method scope
      session                = null
      lastLoginDate          = null
      # generating user info with random username and password
