summaryrefslogtreecommitdiff
path: root/share/www/script/couch_tests.js
diff options
context:
space:
mode:
Diffstat (limited to 'share/www/script/couch_tests.js')
-rw-r--r--share/www/script/couch_tests.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/share/www/script/couch_tests.js b/share/www/script/couch_tests.js
index ccb9755d..2553df9b 100644
--- a/share/www/script/couch_tests.js
+++ b/share/www/script/couch_tests.js
@@ -1615,6 +1615,17 @@ var tests = {
T(docA._rev == docB._rev);
}
+ // check documents with a '/' in the ID
+ // need to re-encode the slash when replicating from a remote source
+ dbA.save({ _id:"abc/def", val:"one" });
+
+ T(CouchDB.replicate(A, B).ok);
+ T(CouchDB.replicate(B, A).ok);
+
+ docA = dbA.open("abc/def");
+ docB = dbB.open("abc/def");
+ T(docA._rev == docB._rev);
+
// now check binary attachments
var binDoc = {
_id:"bin_doc",