       KodingLogger.pt.on 'connect', -> done()
 
 
-  describe '# close', ->
-
-    it 'should close existing connection from papertrail', (done) ->
-
-      expect(KodingLogger.logger).to.exist
-      expect(KodingLogger.pt).to.exist
-
-      KodingLogger.close()
-
-      expect(KodingLogger.logger).to.not.exist
-      expect(KodingLogger.pt).to.not.exist
-
-      done()
-
-
   describe '# send', ->
 
     it 'should send a log to papertrail', (done) ->

          expect(result.logs).to.have.length.above 0
          expect(result.logs[0].message).to.be.equal "#{identifier} #{log}"

          KodingLogger.close()

          done()

      KodingLogger[scope] group, log


  describe '# search', ->


      identifier = KodingLogger.getIdentifier scope, group

      for log in logs
        KodingLogger[scope] group, log

      setTimeout ->

        KodingLogger.search { query }, (err, result) ->

