           res.type('json').status(200).send response
 
         server = app.listen PORT, () ->
-          execCommand custom, (error, stdOut, stdErr, code) ->
+          execCommand cmd, (error, stdOut, stdErr, code) ->
             err = stdErr
             out = stdOut
             exitCode = code


    describe '--path argument is a string', ->
      before (done) ->
        custom =
          argv: [
            "./test/fixtures/single-get.apib"
            '--path', './test/fixtures/single-get.apib'
            "http://localhost:#{PORT}"
          ]

        app = express()


    return


  describe "when creating Dredd instance with existing blueprint and responding server", () ->
    describe "when the server is responding as specified in the blueprint", () ->

      before (done) ->
        cmd =
          options:
            path: "./test/fixtures/single-get.apib"

        app = express()

