         passwordConfirm : 'anotherPassword'
 
     request.post postParams, (err, res, body) ->
-      expect(err)             .to.not.exist
-      expect(res.statusCode)  .to.be.equal 400
+      expect(err).to.not.exist
+      expect(res.statusCode).to.be.equal 400
       done()
 
 

        'x-requested-with' : 'this is not an XHR'

    request.post postParams, (err, res, body) ->
      expect(err)             .to.not.exist
      expect(res.statusCode)  .to.be.equal 301
      done()



  it 'should send HTTP 400 if password is not specified', (done) ->

    postParams = generateRegisterRequestParams
      body       :
        password : ''

    request.post postParams, (err, res, body) ->
      expect(err).to.not.exist
      expect(res.statusCode).to.be.equal 400
      done()


