diff --git a/cms/static/coffee/spec/models/section_spec.coffee b/cms/static/coffee/spec/models/section_spec.coffee index 51f302cb1b..ac79306ed0 100644 --- a/cms/static/coffee/spec/models/section_spec.coffee +++ b/cms/static/coffee/spec/models/section_spec.coffee @@ -44,10 +44,10 @@ describe "CMS.Models.Section", -> @requests[0].respond(200) expect(CMS.Models.Section.prototype.hideNotification).toHaveBeenCalled() - it "show/hide a notification when saving fails", -> + it "don't hide notification when saving fails", -> + # this is handled by the global AJAX error handler @model.save() - expect(CMS.Models.Section.prototype.showNotification).toHaveBeenCalled() @requests[0].respond(500) - expect(CMS.Models.Section.prototype.hideNotification).toHaveBeenCalled() + expect(CMS.Models.Section.prototype.hideNotification).not.toHaveBeenCalled()