Verify icon text in status label specs

This commit is contained in:
Kevin Sawicki
2012-11-02 17:46:14 -07:00
parent bef4f9aaa5
commit e86495080a

View File

@@ -137,12 +137,12 @@ describe "StatusBar", ->
it "displays the modified icon for a changed file", ->
fs.write(path, "i've changed for the worse")
rootView.open(path)
expect(statusBar.gitStatusIcon).toBeVisible()
expect(statusBar.gitStatusIcon).toHaveText('\uf26d')
it "doesn't display the modified icon for an unchanged file", ->
rootView.open(path)
expect(statusBar.gitStatusIcon).toBeHidden()
expect(statusBar.gitStatusIcon).toHaveText('')
it "displays the new icon for a new file", ->
rootView.open(newPath)
expect(statusBar.gitStatusIcon).toBeVisible()
expect(statusBar.gitStatusIcon).toHaveText('\uf26b')