diff options
author | John Christopher Anderson <jchris@apache.org> | 2008-10-21 19:34:59 +0000 |
---|---|---|
committer | John Christopher Anderson <jchris@apache.org> | 2008-10-21 19:34:59 +0000 |
commit | bc8dd6acee3c58474f322821b16892e00d957f83 (patch) | |
tree | 7efe8128f4dce682413c27f5855b1891b1b21f75 | |
parent | 08bec93d4fe6d62c1d4674b20763d7f4d07f9e3b (diff) |
test to close COUCHDB-117
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@706732 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | THANKS | 1 | ||||
-rw-r--r-- | share/www/script/couch_tests.js | 4 |
2 files changed, 5 insertions, 0 deletions
@@ -12,6 +12,7 @@ Some of these people are: * Benoit Chesneau <bchesneau@gmail.com> * Paul Joseph Davis <paul.joseph.davis@gmail.com> * Michael Gottesman <gottesmm@reed.edu> + * Michael Hendricks <michael@ndrix.org> * Till Klampaeckel <till@klampaeckel.de> * Roger Leigh <rleigh@debian.org> * Jim Lindley <web@jimlindley.com> 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 |