From 6dfbd5733de67e2da051576fcce7c6cab8690de9 Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Fri, 11 Apr 2014 11:14:46 -0700 Subject: [PATCH] Fix spec --- spec/workspace-spec.coffee | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/spec/workspace-spec.coffee b/spec/workspace-spec.coffee index 53f034e8d..538907c02 100644 --- a/spec/workspace-spec.coffee +++ b/spec/workspace-spec.coffee @@ -271,14 +271,12 @@ describe "Workspace", -> expect(workspace.getEditors()).toHaveLength 0 describe "when an editor is copied", -> - it "emits an 'editor-created' event and stores the editor", -> + it "emits an 'editor-created' event", -> handler = jasmine.createSpy('editorCreatedHandler') workspace.on 'editor-created', handler editor1 = workspace.openSync("a") expect(handler.callCount).toBe 1 - expect(workspace.getEditors()).toEqual [editor1] editor2 = editor1.copy() expect(handler.callCount).toBe 2 - expect(workspace.getEditors()).toEqual [editor1, editor2]