 
 describe 'GitBridge', ->
 
-  repoBase = -> atom.project.getRepositories()[0].getWorkingDirectory()
+  gitWorkDir = "/fake/gitroot/"
+
+  repo =
+    getWorkingDirectory: -> gitWorkDir
+    relativize: (fullpath) ->
+      if fullpath.startsWith gitWorkDir
+        fullpath[gitWorkDir.length..]
+      else
+        fullpath
 
   beforeEach ->
     done = false

    ])
    expect(c).toBe('/usr/bin/git')
    expect(a).toEqual(['status', '--porcelain'])
    expect(o).toEqual({ cwd: repoBase() })

  describe 'isStaged', ->


      { process: { on: (callback) -> } }

    conflicts = []
    GitBridge.withConflicts repo, (err, cs) ->
      throw err if err
      conflicts = cs

