       it "gets the commit template from git configs", ->
         expect(git.cmd).toHaveBeenCalledWith ['config', '--get', 'commit.template']
 
-      it "writes to a file and the commentchar is default '#'", ->
+      it "writes to a file", ->
         argsTo_fsWriteFile = fs.writeFileSync.mostRecentCall.args
         expect(argsTo_fsWriteFile[0]).toEqual commitFilePath
-        expect(argsTo_fsWriteFile[1].trim().charAt(0)).toBe '#'
 
       it "shows the file", ->
         expect(atom.workspace.open).toHaveBeenCalled()


describe "GitCommit", ->
  describe "a regular commit", ->
    commit = null
    beforeEach ->
      setupMocks()
      commit = GitCommit repo

    it "saves the current pane", ->
      expect(atom.workspace.getActivePane).toHaveBeenCalled()

    describe "::start", ->
      beforeEach ->
        atom.config.set "git-plus.openInPane", false
        waitsForPromise ->
          commit.start()

      it "gets the commentchar from configs", ->
        expect(git.cmd).toHaveBeenCalledWith ['config', '--get', 'core.commentchar']


  spyOn(git, 'cmd').andCallFake ->
    args = git.cmd.mostRecentCall.args[0]
    if args[0] is 'config' and args[2] is 'commit.template'
      Promise.resolve ''
    else if args[0] is 'config' and args[2] is 'core.commentchar'
      Promise.resolve commentchar_config
    else if args[0] is 'status'
      Promise.resolve status
    else if args[0] is 'commit'
