Use workspace.open instead of project.open

This commit is contained in:
Corey Johnson
2014-04-23 16:36:44 -07:00
parent c1929540a3
commit b652dc8fd8
2 changed files with 4 additions and 4 deletions

View File

@@ -278,7 +278,7 @@ describe "Git", ->
it "subscribes to all the serialized buffers in the project", ->
waitsForPromise ->
atom.project.open('sample.js')
atom.workspace.open('sample.js')
runs ->
project2 = atom.project.testSerialization()

View File

@@ -60,18 +60,18 @@ describe "WorkspaceView", ->
pane4 = pane2.splitDown()
waitsForPromise ->
atom.project.open('b').then (editor) ->
atom.workspace.open('b').then (editor) ->
pane2.activateItem(editor)
waitsForPromise ->
atom.project.open('../sample.js').then (editor) ->
atom.workspace.open('../sample.js').then (editor) ->
pane3.activateItem(editor)
runs ->
pane3.activeItem.setCursorScreenPosition([2, 4])
waitsForPromise ->
atom.project.open('../sample.txt').then (editor) ->
atom.workspace.open('../sample.txt').then (editor) ->
pane4.activateItem(editor)
runs ->