diff options
Diffstat (limited to 'share/www')
-rw-r--r-- | share/www/script/test/rewrite.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/share/www/script/test/rewrite.js b/share/www/script/test/rewrite.js index 46e7e477..87c3fac6 100644 --- a/share/www/script/test/rewrite.js +++ b/share/www/script/test/rewrite.js @@ -130,6 +130,10 @@ couchTests.rewrite = function(debug) { "query": { "key": {"c": 1} } + }, + { + "from": "uuids", + "to": "../../../_uuids" } @@ -314,6 +318,15 @@ couchTests.rewrite = function(debug) { xhr = CouchDB.request("GET", "/test_suite_db/_design/test/_rewrite/simpleForm/complexView4"); T(xhr.status == 200, "with query params"); T(/Value: doc 5/.test(xhr.responseText)); + + + // test path relative to server + + var xhr = CouchDB.request("GET", "/_uuids"); + T(xhr.status == 200); + var result = JSON.parse(xhr.responseText); + T(result.uuids.length == 1); + var first = result.uuids[0]; }); }
\ No newline at end of file |