summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorBenoit Chesneau <benoitc@apache.org>2010-02-04 09:55:56 +0000
committerBenoit Chesneau <benoitc@apache.org>2010-02-04 09:55:56 +0000
commit88c27f28fa212b1bb7e9fbd3da4fd70e34965cf3 (patch)
tree395d03380ed0b7b5c239d2f84991909e26be2fbc /share
parent17632461e3ea7007594783c39a25055fa0ccdffe (diff)
fix COUCHDB-638.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@906423 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share')
-rw-r--r--share/www/script/test/show_documents.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/share/www/script/test/show_documents.js b/share/www/script/test/show_documents.js
index accb8522..bdb1b73e 100644
--- a/share/www/script/test/show_documents.js
+++ b/share/www/script/test/show_documents.js
@@ -121,6 +121,9 @@ couchTests.show_documents = function(debug) {
provides("foo", function() {
return "foofoo";
});
+ }),
+ "withSlash": stringFun(function(doc, req) {
+ return { json: doc }
})
}
};
@@ -343,4 +346,9 @@ couchTests.show_documents = function(debug) {
xhr = CouchDB.request("GET", "/test_suite_db/_design/template/_show/json/foo");
TEquals(1, JSON.parse(xhr.responseText)._conflicts.length);
+ var doc3 = {_id:"a/b/c", a:1};
+ db.save(doc3);
+ xhr = CouchDB.request("GET", "/test_suite_db/_design/template/_show/withSlash/a/b/c");
+ T(xhr.status == 200);
+
};