 
 
     it 'should connect to the server', (done) ->
-      runner.hooks.configuration.options.language = 'true'
+      runner.hooks.configuration.options.language = "#{COFFEE_BIN} test/fixtures/scripts/noop.coffee"
 
       loadWorkerClient (err) ->
         assert.isUndefined err


    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()


        else
          beforeEach (done) ->
            receivedData = ""
            runner.hooks.configuration.options.language = "#{COFFEE_BIN} test/fixtures/scripts/noop.coffee"
            sentData = clone transaction
            loadWorkerClient (err) ->
              assert.isUndefined err
