From c628a8a360971de756499c9ceee0c75d45a29e9d Mon Sep 17 00:00:00 2001 From: David Baumgold Date: Thu, 16 May 2013 14:02:00 -0400 Subject: [PATCH] Fix test --- cms/static/coffee/spec/models/section_spec.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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()