diff options
author | Patrick Maia <patrickjourdanmaia@gmail.com> | 2014-10-01 16:43:29 -0300 |
---|---|---|
committer | Patrick Maia <patrickjourdanmaia@gmail.com> | 2014-10-01 16:43:43 -0300 |
commit | aa04ff3742e53bff9f5369ab7357050b7c2947a3 (patch) | |
tree | 3d5bf18bc6a2ba631b2c6e64279c639f7117fdc7 /web-ui/test | |
parent | 97a5e93f5b569556a6eb8b257647a0a757b328b8 (diff) |
#53 - gives better feedback on UI when attempt to add invalid tag is made
Diffstat (limited to 'web-ui/test')
-rw-r--r-- | web-ui/test/spec/services/mail_service.spec.js | 2 |
1 files changed, 1 insertions, 1 deletions
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']); |