/**
 * Author: Jeff Whelpley
 * Date: 1/21/15
 *
 * Testing out batter
 */
var name    = 'lib/batter';
var taste   = require('taste');
var batter  = taste.target(name);

describe('UNIT ' + name, function () {
    describe('getOptions()', function () {
        it('should set defaults', function () {
            var opts = { rootDir: 'foo', targetDir: 'blah', require: 'choo' };
            var expected = {
                rootDir: 'foo',
                targetDir: 'blah',
                require: 'choo',
                unitTestCode: 'test/unit/**/*.js',
                unitTargetCode: 'lib/**/*.js',
                testDir: 'test'
            };
            taste.addCommandLineArgs(expected);

            var actual = batter.getOptions(opts);
            actual.should.deep.equal(expected);
        });
    });

    describe('getPlugins()', function () {
        it('should return batter by default', function () {
            var rootDir = __dirname.replace('/test' + taste.delim + 'unit', '');
            var opts = { rootDir: 'blah' };
            var expected = [
                { rootDir: rootDir },
                { rootDir: 'blah' }
            ];
            var actual = batter.getPlugins(opts);
            actual.should.deep.equal(expected);
        });
    });
});
/**
 * Author: Jeff Whelpley
 * Date: 1/21/15
 *
 * Testing out batter
 */
var name    = 'lib/batter';
var taste   = require('taste');
var batter  = taste.target(name);

describe('UNIT ' + name, function () {
    describe('getOptions()', function () {
        it('should set defaults', function () {
            var opts = { rootDir: 'foo', targetDir: 'blah', require: 'choo' };
            var expected = {
                rootDir: 'foo',
                targetDir: 'blah',
                tasksets: {
                    default: ['lint', 'test']
                },
                require: 'choo',
                unitTestCode: 'test/unit/**/*.js',
                unitTargetCode: 'lib/**/*.js',
                testDir: 'test'
            };
            taste.addCommandLineArgs(expected);

            var actual = batter.getOptions(opts);
            actual.should.deep.equal(expected);
        });
    });

    describe('getPlugins()', function () {
        it('should return batter by default', function () {
            var rootDir = __dirname.replace('/test' + taste.delim + 'unit', '');
            var opts = { rootDir: 'blah' };
            var expected = [
                { rootDir: rootDir },
                { rootDir: 'blah' }
            ];
            var actual = batter.getPlugins(opts);
            actual.should.deep.equal(expected);
        });
    });
});
Fix for broken unit test
Fix for broken unit test
