From bc8dd6acee3c58474f322821b16892e00d957f83 Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Tue, 21 Oct 2008 19:34:59 +0000 Subject: test to close COUCHDB-117 git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@706732 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/couch_tests.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'share') 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 -- cgit v1.2.3