diff options
-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 |