 
       it 'should write a hint how to install', (done) ->
         loadWorkerClient (err) ->
-          assert.isDefined err
+          assert.ok err
           assert.include err.message, "pip install dredd_hooks"
           done()
 


    describe 'when --language=go option is given and the worker is not installed', ->
      beforeEach ->
          sinon.stub whichStub, 'which', (command) -> false

          runner.hooks['configuration'] =
            options:
              language: 'go'
              hookfiles: 'gobinary'
      afterEach ->
          whichStub.which.restore()

      it 'should write a hint how to install', (done) ->
        loadWorkerClient (err) ->
          assert.isDefined err
          assert.include err.message, "go get github.com/snikch/goodman/cmd/goodman"
          done()



      it 'should write a hint that native hooks should be used', (done) ->
        loadWorkerClient (err) ->
          assert.ok err
          assert.include err.message, 'native Node.js hooks instead'
          done()

