       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())
      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'

describe 'production environment', ->


    @urlencoded.args[0][0].extended.should.be.true()
    @bucketAssets.called.should.be.true()
    @setupAuth.called.should.be.true()
    @app.use.args[4][0].name.should.equal 'logger'

describe 'development environment', ->

