From 0ff59644d8e804bcab928d184b31a5e6cdc2f6ed Mon Sep 17 00:00:00 2001 From: Lisa Junger Date: Tue, 6 Jan 2015 16:30:57 +0100 Subject: Issue #182: Escape special chars in tag list. --- 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 55ca81c0..7e95f20a 100644 --- a/web-ui/test/spec/services/mail_service.spec.js +++ b/web-ui/test/spec/services/mail_service.spec.js @@ -201,7 +201,7 @@ describeComponent('services/mail_service', function () { this.component.trigger(Pixelated.events.ui.mails.fetchByTag, {tag: 'new tag'}); - expect($.ajax.calls.mostRecent().args[0]).toContain(encodeURI('tag:"new tag"')); + expect($.ajax.calls.mostRecent().args[0]).toContain(encodeURIComponent('tag:"new tag"')); }); it('sends the previous tag when mails:refresh is called without a tag (this happens when the refresher calls it)', function () { -- cgit v1.2.3