summaryrefslogtreecommitdiff
path: root/share/www
diff options
context:
space:
mode:
Diffstat (limited to 'share/www')
-rw-r--r--share/www/script/test/basics.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/share/www/script/test/basics.js b/share/www/script/test/basics.js
index 217f9aef..ebfe5db2 100644
--- a/share/www/script/test/basics.js
+++ b/share/www/script/test/basics.js
@@ -28,6 +28,12 @@ couchTests.basics = function(debug) {
T(xhr.status == 412);
if (debug) debugger;
+ // creating a new DB should return Location header
+ xhr = CouchDB.request("DELETE", "/new-db");
+ xhr = CouchDB.request("PUT", "/new-db");
+ TEquals("/new-db", xhr.getResponseHeader("Location"),
+ "should return newly created database name in location header");
+
// Get the database info, check the db_name
T(db.info().db_name == "test_suite_db");