diff options
author | Lisa Junger <ljunger@thoughtworks.com> | 2015-01-06 16:30:57 +0100 |
---|---|---|
committer | Lisa Junger <ljunger@thoughtworks.com> | 2015-01-06 16:35:53 +0100 |
commit | 0ff59644d8e804bcab928d184b31a5e6cdc2f6ed (patch) | |
tree | b6f4cd6f9826ea2e9d9e6e4e485a0fb32b78451d /web-ui/test/spec | |
parent | 2c19e7acbfb238e4fcd17725142c7ae9c43a3a77 (diff) |
Issue #182: Escape special chars in tag list.
Diffstat (limited to 'web-ui/test/spec')
-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 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 () { |