summaryrefslogtreecommitdiff
path: root/share/www
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2009-03-21 14:18:46 +0000
committerJohn Christopher Anderson <jchris@apache.org>2009-03-21 14:18:46 +0000
commit17266b0581a214315ebf8ce7454ef9f73fc2a02a (patch)
tree15885e7e0b82637d3d8737428be7c52c44fcfeeb /share/www
parentcc3cd646a64e2cd6e4c318532ba469b152defb41 (diff)
provide a 404 response on deletion of non-existant docs
closes COUCHDB-297 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@756948 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www')
-rw-r--r--share/www/script/test/basics.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/share/www/script/test/basics.js b/share/www/script/test/basics.js
index 2837b77a..06c73ddf 100644
--- a/share/www/script/test/basics.js
+++ b/share/www/script/test/basics.js
@@ -141,4 +141,8 @@ couchTests.basics = function(debug) {
var locs = loc.split('/');
T(locs[4] == resp.id);
T(locs[3] == "test_suite_db");
+
+ // deleting a non-existent doc should be 404
+ xhr = CouchDB.request("DELETE", "/test_suite_db/doc-does-not-exist");
+ T(xhr.status == 404);
};