         git.cmd().then () -> expect(true).toBeTruthy()
 
   describe "git.add", ->
-    it "stages a file", ->
+    it "calls git.cmd with ['add', '--all', {fileName}]", ->
       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()

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

    it "calls git.cmd with ['add', '--update'...] when update option is true", ->
      spyOn(git, 'cmd').andCallFake () ->
        args = git.cmd.mostRecentCall.args[0]
        if args[0] is 'add' and args[1] is '--update'
