mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
Editor.save spec removes test files in afterEach method
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user