diff --git a/spec/app/editor-spec.coffee b/spec/app/editor-spec.coffee index 5a6e4df1f..c5c5ec6f2 100644 --- a/spec/app/editor-spec.coffee +++ b/spec/app/editor-spec.coffee @@ -482,13 +482,13 @@ describe "Editor", -> openHandler = jasmine.createSpy('openHandler') editor.on 'editor:attached', openHandler - editor.simulateDomAttachment() + editor.attachToDom() expect(openHandler).toHaveBeenCalled() [event, eventEditor] = openHandler.argsForCall[0] expect(eventEditor).toBe editor openHandler.reset() - editor.simulateDomAttachment() + editor.attachToDom() expect(openHandler).not.toHaveBeenCalled() describe "editor-path-changed event", ->