summaryrefslogtreecommitdiff
path: root/share/www
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2008-10-21 19:34:59 +0000
committerJohn Christopher Anderson <jchris@apache.org>2008-10-21 19:34:59 +0000
commitbc8dd6acee3c58474f322821b16892e00d957f83 (patch)
tree7efe8128f4dce682413c27f5855b1891b1b21f75 /share/www
parent08bec93d4fe6d62c1d4674b20763d7f4d07f9e3b (diff)
test to close COUCHDB-117
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@706732 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www')
-rw-r--r--share/www/script/couch_tests.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/share/www/script/couch_tests.js b/share/www/script/couch_tests.js
index e436ba00..af4bf5ea 100644
--- a/share/www/script/couch_tests.js
+++ b/share/www/script/couch_tests.js
@@ -28,6 +28,10 @@ var tests = {
db.deleteDb();
db.createDb();
+
+ // PUT on existing DB should return 409 instead of 500
+ xhr = CouchDB.request("PUT", "/test_suite_db/");
+ T(xhr.status == 409);
if (debug) debugger;
// Get the database info, check the db_name