From efbd508163303867d5c09130e2ef60cce485a129 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Mon, 13 Jan 2014 17:31:03 +0800 Subject: [PATCH] Fix git specs when running under symbolic path. --- spec/git-spec.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/git-spec.coffee b/spec/git-spec.coffee index 50e5f5cce..485d4dbbe 100644 --- a/spec/git-spec.coffee +++ b/spec/git-spec.coffee @@ -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)