         repo = git.getSubmodule(pathToSubmoduleFile)
         git.add(repo, file: pathToSubmoduleFile).then (success) -> expect(success).toBe true
 
-    it "stages all files if no file is specified", ->
+    it "calls git.cmd with ['add', '--all', '.'] when no file is specified", ->
       spyOn(git, 'cmd').andCallFake () ->
         args = git.cmd.mostRecentCall.args[0]
         if args[0] is 'add' and args[1] is '--all' and args[2] is '.'

        git.cmd().then () -> expect(true).toBeTruthy()

  describe "git.add", ->
    it "stages a file", ->
      spyOn(git, 'cmd').andCallFake () ->
        args = git.cmd.mostRecentCall.args[0]
        if args[0] is 'add' and args[1] is '--all' and args[2] is pathToSubmoduleFile

      waitsForPromise ->
        repo = git.getSubmodule(pathToSubmoduleFile)
        git.add(repo, update: true).then (success) -> expect(success).toBe true

  describe "git.reset", ->
    it "resets and unstages all files", ->
      spyOn(git, 'cmd').andCallThrough()
