/*global describe, beforeEach, it */
'use strict';
var path = require('path');
var helpers = require('yeoman-generator').test;

describe('scaffold generator', function () {
  this.timeout(15000);

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

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

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

    helpers.mockPrompt(this.app, {
      'projectName': 'The Name',
      'projectDescription': 'The Description',
      'projectMember': 'Member 1, Member 2, Member 3',
      'projectType': 'Only Mobile'
    });
    this.app.options['skip-install'] = true;
    this.app.run({}, function () {
      helpers.assertFile(expected);
      done();
    });
  });
});

@@ -477,552 +477,8 @@
  %7D);
-%0A%0A  it('creates expected files', function (done) %7B%0A    var expected = %5B%0A      // add files you expect to exist here.%0A      'package.json',%0A      '.jshintrc',%0A      '.editorconfig'%0A    %5D;%0A%0A    helpers.mockPrompt(this.app, %7B%0A      'projectName': 'The Name',%0A      'projectDescription': 'The Description',%0A      'projectMember': 'Member 1, Member 2, Member 3',%0A      'projectType': 'Only Mobile'%0A    %7D);%0A    this.app.options%5B'skip-install'%5D = true;%0A    this.app.run(%7B%7D, function () %7B%0A      helpers.assertFile(expected);%0A      done();%0A    %7D);%0A  %7D);
 %0A%7D);

Remove test