Use project global in project spec

This commit is contained in:
Nathan Sobo 2013-02-27 16:20:33 -07:00 committed by probablycorey
parent 7145136cd9
commit 31f7d6669f

View File

@ -3,12 +3,8 @@ fs = require 'fs'
_ = require 'underscore'
describe "Project", ->
project = null
beforeEach ->
project = new Project(require.resolve('fixtures/dir'))
afterEach ->
project.destroy()
project.setPath(project.resolve('dir'))
describe "when editSession is destroyed", ->
it "removes edit session and calls destroy on buffer (if buffer is not referenced by other edit sessions)", ->