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

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


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

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

  it('creates expected files', function (done) {
    var expected = [
      // add files you expect to exist here.
      'package.json',
      'bower.json',
      'Gruntfile.js',
      'README.md',
      '.gitignore',
      '.jshintrc',
      '.bowerrc',
      'src/index.jade',
      'src/scripts/main.js',
      'src/styles/main.styl'
    ];

    helpers.mockPrompt(this.app, {
      'title': 'Foo Bar',
      'bullets': 'Y',
      'hash': 'Y'
    });

    this.app.run({}, function () {
      helpers.assertFiles(expected);
      done();
    });
  });
});

@@ -533,66 +533,79 @@
     
-// add files you expect to exist here.%0A      'package.json
+'.bowerrc',%0A      '.editorconfig',%0A      '.gitignore',%0A      '.jshintrc
 ',%0A 
@@ -656,56 +656,20 @@
    '
-README.md',%0A      '.gitignore',%0A      '.jshintrc
+package.json
 ',%0A 
@@ -670,32 +670,33 @@
 on',%0A      '
-.bowerrc
+README.md
 ',%0A      'sr
@@ -872,16 +872,56 @@
  'hash':
+ 'Y',%0A      'state': 'Y',%0A      'prism':
  'Y'%0A   

Clean up test, add missing expected files