Commit c628a8a3 by David Baumgold

Fix test

parent a8431eea
...@@ -44,10 +44,10 @@ describe "CMS.Models.Section", -> ...@@ -44,10 +44,10 @@ describe "CMS.Models.Section", ->
@requests[0].respond(200) @requests[0].respond(200)
expect(CMS.Models.Section.prototype.hideNotification).toHaveBeenCalled() 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() @model.save()
expect(CMS.Models.Section.prototype.showNotification).toHaveBeenCalled()
@requests[0].respond(500) @requests[0].respond(500)
expect(CMS.Models.Section.prototype.hideNotification).toHaveBeenCalled() expect(CMS.Models.Section.prototype.hideNotification).not.toHaveBeenCalled()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment