diff --git a/spec/pane-view-spec.coffee b/spec/pane-view-spec.coffee index da3105f1a..8d3d3be27 100644 --- a/spec/pane-view-spec.coffee +++ b/spec/pane-view-spec.coffee @@ -166,7 +166,8 @@ describe "PaneView", -> it "removes the pane item", -> editor = null jasmine.unspy(window, 'setTimeout') - filePath = temp.openSync('atom').path + filePath = path.join(temp.mkdirSync(), 'file.txt') + fs.writeFileSync(filePath, '') waitsForPromise -> atom.workspace.open(filePath).then (o) -> editor = o