var assert = require('../../support/assert') , _ = require('underscore') , RedisPool = require('../../../lib/cartodb/redis_pool') , tests = module.exports = {}; suite('redis_pool', function() { // configure redis pool instance to use in tests var test_opts = require('../../support/config').redis_pool; var redis_pool = new RedisPool(test_opts); test('RedisPool object exists', function(done){ assert.ok(RedisPool); done(); }); test('RedisPool can create new redis_pool objects with default settings', function(done){ var redis_pool = new RedisPool(); done(); }); test('RedisPool can create new redis_pool objects with specific settings', function(done){ var redis_pool = new RedisPool(_.extend({host:'127.0.0.1', port: '6379'}, test_opts)); done(); }); test('pool object has an acquire function', function(done){ var found=false; var functions = _.functions(redis_pool); for (var i=0; i