summaryrefslogtreecommitdiff
path: root/share/www
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2010-09-25 18:55:23 +0000
committerJohn Christopher Anderson <jchris@apache.org>2010-09-25 18:55:23 +0000
commit99134ed775bd0825db76fc924c82ff9b0fc99cfa (patch)
tree5e0c3608a4d499cb678b40106c300f7d57c73a5a /share/www
parentfe96a2fb6ee18501f319b667aa4c75fe09125964 (diff)
update documents test assertions
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1001295 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www')
-rw-r--r--share/www/script/test/update_documents.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/share/www/script/test/update_documents.js b/share/www/script/test/update_documents.js
index da68d621..49d3b68a 100644
--- a/share/www/script/test/update_documents.js
+++ b/share/www/script/test/update_documents.js
@@ -113,9 +113,13 @@ couchTests.update_documents = function(debug) {
T(JSON.parse(xhr.responseText).error == "method_not_allowed");
// // hello update world (non-existing docid)
+ xhr = CouchDB.request("GET", "/test_suite_db/nonExistingDoc");
+ T(xhr.status == 404);
xhr = CouchDB.request("PUT", "/test_suite_db/_design/update/_update/hello/nonExistingDoc");
T(xhr.status == 201);
T(xhr.responseText == "<p>New World</p>");
+ xhr = CouchDB.request("GET", "/test_suite_db/nonExistingDoc");
+ T(xhr.status == 200);
// in place update
xhr = CouchDB.request("PUT", "/test_suite_db/_design/update/_update/in-place/"+docid+'?field=title&value=test');