Ensure path is present before building a Buffer with it in spec

This commit is contained in:
Nathan Sobo 2012-07-02 13:13:25 -06:00
parent 8468e89db8
commit 6b3180e144

View File

@ -85,6 +85,7 @@ describe 'Buffer', ->
it "returns false after modified buffer is saved", ->
filePath = "/tmp/atom-tmp-file"
fs.write(filePath, '')
buffer = new Buffer(filePath)
expect(buffer.isModified()).toBe false