       dc.runDredd.restore()
 
     describe 'with finished set to false', ->
+      it 'should not call exit callback', ->
+        assert.isNull exitCalled
       it 'does call runDredd just once with dreddInstance as first argument', ->
         runDreddStub.reset()
         dc.takeoff()

{assert} = require 'chai'
sinon = require 'sinon'

proxyquire = require('proxyquire').noCallThru()


        assert.equal dc.dreddInstance, 'myDreddInstance'


  describe 'takeoff without argv set', ->
    dc = null
    runDreddStub = null
    exitCalled = null
    beforeEach ->
      dc = new DreddCommand({
        exit: ->
          exitCalled = true
      })
      dc.dreddInstance = 'dreddInstance'
      runDreddStub = sinon.stub dc, 'runDredd', ->
