/**
 * Load Subject
 */
eval(require('fs').readFileSync('./src/RandomColor.js', 'utf8'));

/**
 * Test suite
 */
describe("RandomColor", function() {

    it("should exist", function() {
        var classy = new RandomColor(['whatevs']);
    });

});

/**
 * Load Subject
 */
eval(require('fs').readFileSync('./src/Utils.js', 'utf8'));
eval(require('fs').readFileSync('./src/RandomColor.js', 'utf8'));

/**
 * Test suite
 */
describe("RandomColor", function() {

    var samplePalette = ['#f00', '#ff0', '#fff'],
        subject;

    beforeEach(function() {
        subject = new RandomColor(samplePalette);
    });

    it("will be initialized with a given palette", function() {
        expect(subject._lastColor).toBe(false);
        expect(subject._delivered).toEqual([]);
        expect(subject._palette).toEqual(samplePalette);
    });

    it("will return different color on each call", function() {
        var color1 = subject.getColor(),
            color2 = subject.getColor(),
            color3 = subject.getColor();

        expect(color2).not.toEqual(color1);
        expect(color3).not.toEqual(color2);
    });

});

Add basic specs to the main functionality of getColor
Add basic specs to the main functionality of getColor
