       setupAuth: @setupAuth = sinon.stub()
       setupEnv: @setupEnv = sinon.stub()
       session: @session = sinon.stub().returns((req, res, next) -> next())
-      logger: @logger = sinon.stub().returns((req, res, next) -> next())
     @app = express()
     sinon.spy @app, 'use'
     sinon.spy @app, 'get'
     sinon.spy @app, 'set'
     setup @app
 
-  it 'sets artsy-morgan logs to dev mode', ->
-    @logger.args[0][0].should.equal 'dev'
+  it 'mounts logger middleware', ->
+    @app.use.args[4][0].name.should.equal 'logger'
 
 describe 'production environment', ->
 

      setupAuth: @setupAuth = sinon.stub()
      setupEnv: @setupEnv = sinon.stub()
      session: @session = sinon.stub().returns((req, res, next) -> next())
      logger: @logger = sinon.stub().returns((req, res, next) -> next())
      bodyParser:
        json: @json = sinon.stub().returns((req, res, next) -> next())
        urlencoded: @urlencoded = sinon.stub().returns((req, res, next) -> next())

      setupAuth: @setupAuth = sinon.stub()
      setupEnv: @setupEnv = sinon.stub()
      session: @session = sinon.stub().returns((req, res, next) -> next())
    @app = express()
    sinon.spy @app, 'use'
    sinon.spy @app, 'get'
    sinon.spy @app, 'set'
    setup @app

  it 'mounts logger middleware', ->
    @app.use.args[5][0].name.should.equal 'logger'

  it 'sets SSL options', ->
    @app.set.args[3][0].should.equal 'forceSSLOptions'
