mirror of
https://github.com/atom/atom.git
synced 2026-02-06 12:44:59 -05:00
Eliminate fixturesProject global. Use project global instead.
This commit is contained in:
committed by
probablycorey
parent
9f7b804a6c
commit
54fc9efdcb
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user