From 557d277e9ff7a8f992389f9099db454ba4afa855 Mon Sep 17 00:00:00 2001 From: Ben Ogle Date: Wed, 19 Nov 2014 16:58:52 -0800 Subject: [PATCH] Remove workspaceView references from the window-specs --- spec/window-spec.coffee | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/spec/window-spec.coffee b/spec/window-spec.coffee index 314ac7e3c..3aae94e55 100644 --- a/spec/window-spec.coffee +++ b/spec/window-spec.coffee @@ -107,14 +107,16 @@ describe "Window", -> describe ".removeEditorWindow()", -> it "unsubscribes from all buffers", -> + spyOn atom.windowEventHandler, 'unsubscribe' + waitsForPromise -> atom.workspace.open("sample.js") runs -> buffer = atom.workspace.getActivePaneItem().buffer - pane = atom.workspaceView.getActivePaneView() - pane.splitRight(pane.copyActiveItem()) - expect(atom.workspaceView.find('atom-text-editor').length).toBe 2 + pane = atom.workspace.getActivePane() + pane.splitRight(copyActiveItem: true) + expect(atom.workspace.getTextEditors().length).toBe 2 atom.removeEditorWindow()