updated loggers to write the actual url

This commit is contained in:
Spencer Alger
2014-01-28 16:41:55 -07:00
parent a8e9645183
commit 513486f372
35 changed files with 211 additions and 147 deletions

View File

@ -0,0 +1,17 @@
describe('Round Robin Selector', function () {
var selector = require('../../../src/lib/selectors/round_robin');
var _ = require('lodash');
var expect = require('expect.js');
it('chooses options in order', function () {
var options = [1, 2, 3, 4, 5, 6, 7, 8, 9, 0];
var expected = _.clone(options);
var selections = [];
_.times(options.length, function () {
selections.push(selector(options));
});
expect(selections).to.eql(expected);
});
});