From 99134ed775bd0825db76fc924c82ff9b0fc99cfa Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Sat, 25 Sep 2010 18:55:23 +0000 Subject: update documents test assertions git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1001295 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/test/update_documents.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'share') 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 == "

New World

"); + 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'); -- cgit v1.2.3