From b652dc8fd80f87d16fc419f664ab45be49b16054 Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Wed, 23 Apr 2014 16:36:44 -0700 Subject: [PATCH] Use workspace.open instead of project.open --- spec/git-spec.coffee | 2 +- spec/workspace-view-spec.coffee | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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 ->