Repository: couchdb-fauxton Updated Branches: refs/heads/master ed68b83d8 -> 7fec5cd2a
Take out one layer of encoding Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/7fec5cd2 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/7fec5cd2 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/7fec5cd2 Branch: refs/heads/master Commit: 7fec5cd2aa2e85aca076f60a60f5f88be1df1796 Parents: ed68b83 Author: Michelle Phung <[email protected]> Authored: Mon Aug 3 15:31:17 2015 -0400 Committer: Michelle Phung <[email protected]> Committed: Wed Aug 5 10:56:21 2015 -0400 ---------------------------------------------------------------------- app/addons/documents/base.js | 2 +- app/addons/documents/tests/routeSpec.js | 18 ++++++++++-------- 2 files changed, 11 insertions(+), 9 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/7fec5cd2/app/addons/documents/base.js ---------------------------------------------------------------------- diff --git a/app/addons/documents/base.js b/app/addons/documents/base.js index 348b16d..ba4a892 100644 --- a/app/addons/documents/base.js +++ b/app/addons/documents/base.js @@ -75,7 +75,7 @@ function (app, FauxtonAPI, Documents) { }, app: function (database, doc) { - return '/database/' + database + '/' + encodeURI(doc); + return '/database/' + database + '/' + doc; }, apiurl: function (database, doc) { http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/7fec5cd2/app/addons/documents/tests/routeSpec.js ---------------------------------------------------------------------- diff --git a/app/addons/documents/tests/routeSpec.js b/app/addons/documents/tests/routeSpec.js index 84bd9f8..31cc82c 100644 --- a/app/addons/documents/tests/routeSpec.js +++ b/app/addons/documents/tests/routeSpec.js @@ -53,13 +53,15 @@ define([ }); - describe('Fauxton Urls', function () { + // until there is consensus on how to encode json responses + // https://issues.apache.org/jira/browse/COUCHDB-2748 + // taking out this test for https://github.com/apache/couchdb-fauxton/pull/489 - it('document app encodes document id', function () { - var id = "\foo"; - var url = FauxtonAPI.urls('document', 'app', 'fake-db', id); - assert.deepEqual("/database/fake-db/%0Coo", url); - }); - - }); + //describe('Fauxton Urls', function () { + // it('document app encodes document id', function () { + // var id = "\foo"; + // var url = FauxtonAPI.urls('document', 'app', 'fake-db', id); + // assert.deepEqual("/database/fake-db/%0Coo", url); + // }); + //}); });
