diff --git a/spec/app/buffer-spec.coffee b/spec/app/buffer-spec.coffee index 6ae3659e0..e485c0cdb 100644 --- a/spec/app/buffer-spec.coffee +++ b/spec/app/buffer-spec.coffee @@ -143,6 +143,10 @@ describe 'Buffer', -> waitsFor "file to be removed", (done) -> bufferToDelete.file.one 'remove', done + + afterEach -> + bufferToDelete.destroy() + it "retains its path and reports the buffer as modified", -> expect(bufferToDelete.getPath()).toBe path expect(bufferToDelete.isModified()).toBeTruthy()