
'use strict';

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

describe('yo barephp usage', function () {
  before(function (done) {
    helpers.run(path.join(__dirname, '../app'))
      .withOptions({
        'skip-install': true
      })
      .withPrompts({
        account: 'juliangut',
        name: 'Julián Gutiérrez',
        email: 'juliangut@gmail',
        homepage: 'juliangut.com',
        projectname: 'Jgut/GeneratorBarePHP',
        xtras: 'travis, coveralls, scrutinizer, styleci, homestead, docs'
      })
      .on('end', done);
  });

  it('creates default files', function () {
    assert.file([
      '.coveralls.yml',
      '.editorconfig',
      '.gitattributes',
      '.gitignore',
      '.scrutinizer.yml',
      '.styleci.yml',
      '.travis.yml',
      'CONTRIBUTING.md',
      'Gruntfile.js',
      'LICENSE',
      'README.md',
      'Vagrantfile',
      'composer.json',
      'package.json',
      'phpunit.xml'
    ]);
  });
});

@@ -333,38 +333,8 @@
 s(%7B%0A
-        account: 'juliangut',%0A
     
@@ -394,16 +394,20 @@
 ut@gmail
+.com
 ',%0A     
@@ -448,43 +448,80 @@
     
-projectname: 'Jgut/GeneratorBarePHP
+useRepository: true,%0A        type: 'github',%0A        account: 'juliangut
 ',%0A 
@@ -535,16 +535,27 @@
 xtras: '
+packagist, 
 travis, 

fix test