Add specs for status bar branch label

This commit is contained in:
Kevin Sawicki
2012-10-25 15:33:45 -07:00
committed by Corey Johnson
parent 8e8ab4ff94
commit 28db13dbc1
2 changed files with 18 additions and 2 deletions

View File

@@ -60,10 +60,10 @@ class StatusBar extends View
if path = @editor.getPath()
@head = new Git(path).getShortHead()
else
@head = null
@head = ''
@branchLabel.text(@head)
if @head
@branchLabel.text(@head)
@branchArea.show()
else
@branchArea.hide()