 
     before (done) ->
         # connect to the db
-        _uri = URL.parse(nconf.get("analytics:es_uri"))
+        _uri = URL.parse(config.es_uri)
 
         es = new elasticsearch.Client
             host:       "http://#{_uri.hostname}:#{_uri.port||9200}"


# started an hour ago
start_time = Number(new Date) - 60*60*1000

START =
    type:           "session_start"

        logger = new Logger {}

        it "starts up using config options", (done) ->
            analytics = new Analytics config:config, log:logger, (err) ->
                expect(err).to.be.null

                expect(analytics).to.be.instanceof(Analytics)
