 
     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


  describe '#createUser', ->

    beforeEach ->

      userInfo = TestHelper.getUserInfo()


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


        ->
          # setting a different email, username will be duplicate
          userInfo.email  = "kodingtestuser+#{generateRandomString()}@gmail.com"
          expectedError   = "The slug #{userInfo.username} is not available."

          JUser.createUser userInfo, (err) ->
