--- Revision None +++ Revision 636635343539 @@ -0,0 +1,22 @@ +bulkdocs_bug: function (debug) { + var db = new CouchDB("test_suite_bulkdocs"); + db.deleteDb(); + db.createDb(); + if(debug) debugger; + + var docs = [{"_id":1,"client":1,"talents":{"actor":5,"extra":5}},{"_id":2,"client":2,"talents":{"actor":5,"extra":5}}] + + // Create the docs + var result = db.bulkSave(docs); + + // Should not be ok - non string _id values + T(!result.ok); + T(result.new_revs.length == 0); + + // DB should be empty + var results = db.allDocs(); + T(results.rows.length == 0); + + // Try and fetch one + T(db.open(1) == null); + },