 
   it 'should pass err if url is not specified', (done) ->
 
-    postParams = getPostParams
+    postParams = generatePostParams
       url : ''
 
     request.post postParams, (err, res, body) ->


  it 'should send HTTP 400 if email is in use', (done) ->

    randomString = getRandomString()
    postParams   = getPostParams
      body    :
        email : "kodingtestuser+#{randomString}@koding.com"


    daisy queue


  it 'should send HTTP 400 if agree is set as off', (done) ->

    postParams = generatePostParams
      body        :
        agree     : 'off'

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


  it 'should send HTTP 200 if valid data sent as XHR request', (done) ->

    postParams  = generatePostParams()

    request.post postParams, (err, res, body) ->
      expect(err)             .to.not.exist
