       done()
 
 
+  it 'should send HTTP 200 if user is related to any team', (done) ->
+
+    slug  = generateRandomString()
+    email = generateRandomEmail()
+
+    registerRequestParams = generateRegisterRequestParams
+      body : { email }
+
+    queue = [
+
+      (next) ->
+        request.post registerRequestParams, (err, res, body) ->
+          expect(err).to.not.exist
+          expect(res.statusCode).to.be.equal 200
+          next()
+
+      (next) ->
+        options = { body : { slug, invitees : email, companyName : slug } }
+        generateCreateTeamRequestParams options, (createTeamRequestParams) ->
+
+          request.post createTeamRequestParams, (err, res, body) ->
+            expect(err).to.not.exist
+            expect(res.statusCode).to.be.equal 200
+            next()
+
+      (next) ->
+        requestParams = FindTeamHelper.generateRequestParams
+          body    : { email }
+
+        request.post requestParams, (err, res, body) ->
+          expect(err).to.not.exist
+          expect(res.statusCode).to.be.equal 200
+          expect(body).to.be.equal ''
+          next()
+    ]
+
+    async.series queue, done
+
+
+beforeTests()
 runTests()


        request.post requestParams, (err, res, body) ->
          expect(err).to.not.exist
          expect(res.statusCode).to.be.equal 200
          expect(body).to.be.equal ''
          next()

    ]

    async.series queue, done

{ async
  expect
  request
  checkBongoConnectivity
  generateRandomEmail
  generateRandomString
  generateRandomUsername }          = require '../../../testhelper'
{ testCsrfToken }                   = require '../../../testhelper/handler'
FindTeamHelper                      = require '../../../testhelper/handler/findteamhelper'
{ generateRegisterRequestParams }   = require '../../../testhelper/handler/registerhelper'
{ generateCreateTeamRequestParams } = require '../../../testhelper/handler/teamhelper'


beforeTests = -> before (done) ->

  checkBongoConnectivity done


runTests = -> describe 'server.handlers.findteam', ->
