Use /tmp file for non-repo branch label spec

This commit is contained in:
Kevin Sawicki 2012-10-27 09:18:59 -07:00 committed by Corey Johnson
parent 90126d1a9b
commit 7f0091b67e

View File

@ -114,7 +114,7 @@ describe "StatusBar", ->
expect(statusBar.branchLabel.text()).toBe 'master'
it "doesn't display the current branch for a file not in a repository", ->
path = require.resolve('fixtures/git/nohead.git/HEAD')
path = '/tmp/temp.txt'
rootView.open(path)
expect(statusBar.branchArea).toBeHidden()
expect(statusBar.branchLabel.text()).toBe ''