summaryrefslogtreecommitdiff
path: root/web-ui/test
diff options
context:
space:
mode:
authorDuda Dornelles <ddornell@thoughtworks.com>2014-10-16 17:08:55 +0200
committerDuda Dornelles <ddornell@thoughtworks.com>2014-10-16 17:09:06 +0200
commita8f3d31bd41def7a334b5a2f4f260ec77ce76d2c (patch)
treefbabfffc7d1433add643822ad3b4faf637d3d337 /web-ui/test
parent5a0425986800bf03de8c49dc00f45d86d3b365ee (diff)
Making sure only the tags are shown in the mail when you update the mail
tags. Also, disabling the tags feature toggles
Diffstat (limited to 'web-ui/test')
-rw-r--r--web-ui/test/spec/services/mail_service.spec.js3
1 files changed, 2 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 85680cb6..3ce223cc 100644
--- a/web-ui/test/spec/services/mail_service.spec.js
+++ b/web-ui/test/spec/services/mail_service.spec.js
@@ -81,7 +81,8 @@ describeComponent('services/mail_service', function () {
it('updates the tags of the desired message', function () {
spyOn(this.component, 'refreshResults');
- var spyAjax = spyOn($, 'ajax').andReturn({done: function(f) { f(); return {fail: function() {}};}});
+ var updateTagsReturnValue = { tags: ['website'], mailbox: 'inbox'}
+ var spyAjax = spyOn($, 'ajax').andReturn({done: function(f) { f(updateTagsReturnValue); return {fail: function() {}};}});
var spyEvent = spyOnEvent(document, Pixelated.events.mail.tags.updated);
var component = jasmine.createSpyObj('component',['successUpdateTags']);