     @get = sinon.stub jQuery, 'get', (_url, callback) ->
       callback 'github.com/scraperwiki/highrise-tool.git'
 
-    window.apikey = 'a-test-apikey'
 
   after ->
     jQuery.get.restore()

    before (done) ->
      ajaxObj =
        success: (cb) -> cb()

      @ajax = sinon.stub(jQuery, 'ajax').returns ajaxObj
      @tool.install done

        url: "#{base_url}/#{@tool.boxName()}/exec"
        data:
          apikey: sinon.match /.+/
          cmd: sinon.match /.*unzip master.*/

      called.should.be.true

