From aa04ff3742e53bff9f5369ab7357050b7c2947a3 Mon Sep 17 00:00:00 2001 From: Patrick Maia Date: Wed, 1 Oct 2014 16:43:29 -0300 Subject: #53 - gives better feedback on UI when attempt to add invalid tag is made --- web-ui/test/spec/services/mail_service.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web-ui/test') diff --git a/web-ui/test/spec/services/mail_service.spec.js b/web-ui/test/spec/services/mail_service.spec.js index c2b6cb5f..bce54857 100644 --- a/web-ui/test/spec/services/mail_service.spec.js +++ b/web-ui/test/spec/services/mail_service.spec.js @@ -96,7 +96,7 @@ describeComponent('services/mail_service', function () { }); it('triggers an error message when it can\'t update the tags', function () { - var spyAjax = spyOn($, 'ajax').andReturn({done: function() { return {fail: function(f) {f();}};}}); + var spyAjax = spyOn($, 'ajax').andReturn({done: function() { return {fail: function(f) {f({status:500});}};}}); var spyEvent = spyOnEvent(document, Pixelated.events.ui.userAlerts.displayMessage); var component = jasmine.createSpyObj('component',['failureUpdateTags']); -- cgit v1.2.3