 {isProcessRunning, killAll, runDreddCommand, createServer, DEFAULT_SERVER_PORT} = require '../helpers'
 
 
+COFFEE_BIN = 'node_modules/.bin/coffee'
 NON_EXISTENT_PORT = DEFAULT_SERVER_PORT + 1
 
 

          it 'should exit with status 1', ->
            assert.equal dreddCommandInfo.exitStatus, 1

    describe 'When didn\'t terminate and had to be killed by Dredd', ->
      dreddCommandInfo = undefined
      args = [
        './test/fixtures/single-get.apib'
        "http://127.0.0.1:#{DEFAULT_SERVER_PORT}"
        "--server=coffee ./test/fixtures/scripts/dummy-server-nosigterm.coffee #{DEFAULT_SERVER_PORT}"
        '--server-wait=1'
      ]


      args = [
        './test/fixtures/single-get.apib'
        "http://127.0.0.1:#{DEFAULT_SERVER_PORT}"
        "--server=#{COFFEE_BIN} ./test/fixtures/scripts/dummy-server.coffee #{DEFAULT_SERVER_PORT}"
        '--server-wait=1'
      ]

