Permalink
Browse files

better name for getting uuids api function

  • Loading branch information...
Zoddy committed Jul 20, 2012
1 parent 3b2a83a commit af6ab9750eff4a23a2afa178521913f53d34fe95
Showing with 5 additions and 5 deletions.
  1. +2 −2 README.md
  2. +1 −1 cushion.js
  3. +2 −2 test/1-connection-test.js
View
@@ -125,8 +125,8 @@ cushion.config(section, option, value, callback)
### list of generated uuids ###
**Description:** Returns a list of couchdb generated uuids.
- cushion.uuidList(callback);
- cushion.uuidList(count, callback);
+ cushion.uuids(callback);
+ cushion.uuids(count, callback);
**count** - number of uuids to generate **[ default: 1 ]**
**callback** - function(error, uuidList) that will be called, after getting the list of uuids or if there was an error
View
@@ -401,7 +401,7 @@ cushion.prototype.stats = function(callback) {
* @param {?function(error, uuidList)} callback function that will be called,
* after getting the list of uuids or if there was an error
*/
-cushion.prototype.uuidList = function(countOrCallback, callback) {
+cushion.prototype.uuids = function(countOrCallback, callback) {
var count = (arguments.length > 1) ? countOrCallback : null;
callback = callback || countOrCallback;
@@ -95,15 +95,15 @@ exports.tests = [{
}
}, {
'message': 'generate uuid',
- 'callpath': 'connection.uuidList',
+ 'callpath': 'connection.uuids',
'url': ['GET', '_uuids'],
'callback': function(error, uuid) {
expect(uuid).to.be.an('array').and.to.have.length(1);
expect(uuid[0]).to.be.a('string');
}
}, {
'message': 'generate three uuids',
- 'callpath': 'connection.uuidList',
+ 'callpath': 'connection.uuids',
'arguments': [3],
'url': ['GET', '_uuids?count=3'],
'callback': function(error, uuids) {

0 comments on commit af6ab97

Please sign in to comment.