diff --git a/spec/git-spec.coffee b/spec/git-spec.coffee index a527a5c94..a412cc7d4 100644 --- a/spec/git-spec.coffee +++ b/spec/git-spec.coffee @@ -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() diff --git a/spec/workspace-view-spec.coffee b/spec/workspace-view-spec.coffee index 36178e7fa..ed24a5b9a 100644 --- a/spec/workspace-view-spec.coffee +++ b/spec/workspace-view-spec.coffee @@ -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 ->