     Given -> @context.data =
       cmd: 'git remote show origin'
     When ->
-      @grunt.registerMultiTask.getCall(0).args[2].apply @context, []
+      @task.apply @context, []
       @emitter.emit 'close', 0
     Then -> expect(@cb).to.have.been.called
 

    Given -> @context.data =
      rawArgs: ['---blah^foo hi']
    When ->
      @grunt.registerMultiTask.getCall(0).args[2].apply @context, []
      @emitter.emit 'close', 0
    Then -> expect(@cb).to.have.been.called


    Given -> @context.data =
      cmd: 'remote show origin'
    When ->
      @task.apply @context, []
      @emitter.emit 'close', 0
    Then -> expect(@cb).to.have.been.called

