Eliminate fixturesProject global. Use project global instead.

This commit is contained in:
Nathan Sobo
2013-02-28 10:11:06 -07:00
committed by probablycorey
parent 9f7b804a6c
commit 54fc9efdcb
13 changed files with 36 additions and 40 deletions

View File

@@ -6,12 +6,11 @@ EditSession = require 'edit-session'
_ = require 'underscore'
describe "CommandInterpreter", ->
[project, interpreter, editSession, buffer] = []
[interpreter, editSession, buffer] = []
beforeEach ->
project = new Project(fixturesProject.resolve('dir/'))
interpreter = new CommandInterpreter(fixturesProject)
editSession = fixturesProject.buildEditSession('sample.js')
interpreter = new CommandInterpreter(project)
editSession = project.buildEditSession('sample.js')
buffer = editSession.buffer
afterEach ->
@@ -418,7 +417,7 @@ describe "CommandInterpreter", ->
describe "X x/regex/", ->
it "returns selection operations for all regex matches in all the project's files", ->
editSession.destroy()
project = new Project(fixturesProject.resolve('dir/'))
project.setPath(project.resolve('dir'))
interpreter = new CommandInterpreter(project)
operationsToPreview = null