Fix git specs when running under symbolic path.

This commit is contained in:
Cheng Zhao
2014-01-13 17:31:03 +08:00
parent 1074c6c34e
commit efbd508163

View File

@@ -187,6 +187,7 @@ describe "Git", ->
newPath = atom.project.resolve('git/working-dir/untracked.txt')
cleanPath = atom.project.resolve('git/working-dir/other.txt')
fs.writeFileSync(newPath, '')
newPath = fs.absolute newPath # specs could be running under symbol path.
afterEach ->
fs.writeFileSync(modifiedPath, originalModifiedPathText)