couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jch...@apache.org
Subject svn commit: r1001295 - /couchdb/trunk/share/www/script/test/update_documents.js
Date Sat, 25 Sep 2010 18:55:23 GMT
Author: jchris
Date: Sat Sep 25 18:55:23 2010
New Revision: 1001295

URL: http://svn.apache.org/viewvc?rev=1001295&view=rev
Log:
update documents test assertions

Modified:
    couchdb/trunk/share/www/script/test/update_documents.js

Modified: couchdb/trunk/share/www/script/test/update_documents.js
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/test/update_documents.js?rev=1001295&r1=1001294&r2=1001295&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/test/update_documents.js (original)
+++ couchdb/trunk/share/www/script/test/update_documents.js Sat Sep 25 18:55:23 2010
@@ -113,9 +113,13 @@ couchTests.update_documents = function(d
   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');



Mime
View raw message