diff --git a/spec/atom/editor-spec.coffee b/spec/atom/editor-spec.coffee index bf3132292..7facbc374 100644 --- a/spec/atom/editor-spec.coffee +++ b/spec/atom/editor-spec.coffee @@ -1060,11 +1060,13 @@ describe "Editor", -> tempFilePath = null beforeEach -> - tempFilePath = '/tmp/temp.txt' - expect(fs.remove(tempFilePath)) + tempFilePath = '/tmp/atom-temp.txt' editor.setBuffer new Buffer(tempFilePath) expect(editor.buffer.path).toBe tempFilePath + afterEach -> + expect(fs.remove(tempFilePath)) + it "saves the current buffer to disk", -> editor.buffer.setText 'Edited!' expect(fs.exists(tempFilePath)).toBeFalsy()