 
   describe "git branch label", ->
     beforeEach ->
-      fs.remove('/tmp/.git') if fs.isDirectorySync('/tmp/.git')
+      fs.remove(path.join(os.tmpdir(), '.git')) if fs.isDirectorySync(path.join(os.tmpdir(), '.git'))
       rootView.attachToDom()
 
     it "displays the current branch for files in repositories", ->

{_, $, $$, fs, RootView} = require 'atom'
StatusBar = require '../lib/status-bar-view'
path = require 'path'

describe "StatusBar", ->
  [editor, statusBar, buffer] = []

      expect(statusBar.branchLabel.text()).toBe 'master'

    it "doesn't display the current branch for a file not in a repository", ->
      project.setPath(os.tmpdir())
      rootView.openSync(path.join(os.tmpdir(), 'temp.txt'))
      expect(statusBar.branchArea).toBeHidden()

    it "doesn't display the current branch for a file outside the current project", ->
      rootView.openSync(path.join(os.tmpdir(), 'atom-specs', 'not-in-project.txt'))
      expect(statusBar.branchArea).toBeHidden()

  describe "git status label", ->
