         url: "#{base_url}/#{@tool.boxName()}/exec"
         data:
           apikey: sinon.match /.+/
-          cmd: sinon.match /.*git clone.*/
+          cmd: sinon.match /.*unzip master.*/
 
       called.should.be.true
 

should = require 'should'
helper = require '../helper'

helper.evalConcatenatedFile 'client/code/model/tool.coffee'
base_url = "http://boxecutor-dev-1.scraperwiki.net"
username = 'cotest'

describe 'Model: Tool', ->
  before ->
    num = String(Math.random()).replace '.',''
    @tool = new ToolModel
      name: 'highrise'

    sinon.stub(@tool, 'boxName').returns \

    @get = sinon.stub jQuery, 'get', (_url, callback) ->
      callback 'github.com/scraperwiki/highrise-tool.git'


  after ->
    jQuery.get.restore()
