 {_, $, $$, fs, RootView} = require 'atom'
 StatusBar = require '../lib/status-bar-view'
 path = require 'path'
+os = require 'os'
 
 describe "StatusBar", ->
   [editor, statusBar, buffer] = []


  describe "when the buffer content has changed from the content on disk", ->
    it "disables the buffer modified indicator on save", ->
      filePath = "/tmp/atom-whitespace.txt"
      fs.writeSync(filePath, "")
      rootView.openSync(filePath)
      editor = rootView.getActiveView()


  describe "git branch label", ->
    beforeEach ->
      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", ->
