 
     describe 'when loading hooks with --hookfiles', () ->
 
-      recievedRequest = {}
+      receivedRequest = {}
 
       before (done) ->
         cmd = "./bin/abao ./test/fixtures/single-get.raml http://localhost:#{PORT} --hookfiles=./test/fixtures/*_hooks.*"

        app = express()

        app.get '/machines', (req, res) ->
          recievedRequest = req
          res.setHeader 'Content-Type', 'application/json'
          machine =
            type: 'bulldozer'


    describe "when adding additional headers with -h", ->

      receivedRequest = {}

      before (done) ->
        cmd = "./bin/abao ./test/fixtures/single-get.raml http://localhost:#{PORT} -h Accept:application/json"
