     Then -> expect(@cb).to.have.been.called
 
   describe 'command with a different name', ->
-    Given -> @emitter = new EventEmitter()
     Given -> @cp.spawn.withArgs('git', ['remote', 'show', 'origin'], { stdio: 'inherit', cwd: '.' }).returns @emitter
     Given -> @context.target = 'banana'
     Given -> @context.data =

    Then -> expect(@cb).to.have.been.called

  describe 'command with extra options', ->
    Given -> @emitter = new EventEmitter()
    Given -> @cp.spawn.withArgs('git', ['commit', '--message', 'A commit message'], { stdio: 'foo', cwd: 'bar' }).returns @emitter
    Given -> @context.target = 'commit'
    Given -> @context.options.returns

    Then -> expect(@cb).to.have.been.called

  describe 'options have equal sign', ->
    Given -> @cp.spawn.withArgs('git', ['log', '--author=nichols'], { stdio: 'inherit', cwd: '.' }).returns @emitter
    Given -> @context.target = 'log'
    Given -> @context.options.returns
