/*global describe, beforeEach, it*/
'use strict';

var path    = require('path');
var helpers = require('yeoman-generator').test;


describe('browserify generator', function () {
    beforeEach(function (done) {
        helpers.testDirectory(path.join(__dirname, 'temp'), function (err) {
            if (err) {
                return done(err);
            }

            this.app = helpers.createGenerator('browserify:app', [
                '../../app'
            ]);
            done();
        }.bind(this));
    });

    it('creates expected files', function (done) {
        var expected = [
            // add files you expect to exist here.
            '.jshintrc',
            '.editorconfig'
        ];

        helpers.mockPrompt(this.app, {
            'framework': 'foundation',
            'modernizr': true,
            'jade': true
        });
        this.app.options['skip-install'] = true;
        this.app.run({}, function () {
            helpers.assertFiles(expected);
            done();
        });
    });
});

@@ -773,16 +773,17 @@
 ework': 
+%5B
 'foundat
@@ -786,16 +786,86 @@
 ndation'
+%5D,%0A            'compiler': %5B'libsass'%5D,%0A            'foundation': true
 ,%0A      
@@ -908,16 +908,45 @@
  'jade':
+ true,%0A            'libsass':
  true%0A  

Update tests to reflect addition of list prompts and compiler list in generator.