diff --git a/spec/workspace-view-spec.coffee b/spec/workspace-view-spec.coffee index 448284545..cdb5ce443 100644 --- a/spec/workspace-view-spec.coffee +++ b/spec/workspace-view-spec.coffee @@ -299,16 +299,12 @@ describe "WorkspaceView", -> describe "saving the active item", -> describe "saveActivePaneItem", -> describe "when there is an error", -> - beforeEach -> - it "emits a warning notification when the file cannot be saved", -> spyOn(Pane::, 'saveActiveItem').andCallFake -> throw new Error("'/some/file' is a directory") atom.notifications.onDidAddNotification addedSpy = jasmine.createSpy() - atom.workspace.saveActivePaneItem() - expect(addedSpy).toHaveBeenCalled() expect(addedSpy.mostRecentCall.args[0].getType()).toBe 'warning' @@ -317,7 +313,6 @@ describe "WorkspaceView", -> throw new Error("ENOTDIR, not a directory '/Some/dir/and-a-file.js'") atom.notifications.onDidAddNotification addedSpy = jasmine.createSpy() - atom.workspace.saveActivePaneItem() expect(addedSpy).toHaveBeenCalled() expect(addedSpy.mostRecentCall.args[0].getType()).toBe 'warning'