test-ember-starter.js 815 B

123456789101112131415161718192021222324252627282930313233
  1. var path = require('path');
  2. var helpers = require('../..').test;
  3. describe('Ember-Starter generator test', function() {
  4. before(helpers.before(path.join(__dirname, './temp')));
  5. it('runs sucessfully', function(done) {
  6. helpers.runGenerator('ember-starter', done);
  7. });
  8. it('creates expected files', function() {
  9. helpers.assertFile('app/scripts');
  10. helpers.assertFile('app/styles');
  11. helpers.assertFile('app/scripts/app.js');
  12. helpers.assertFile('app/scripts/libs/ember-1.0.pre.js');
  13. helpers.assertFile('app/scripts/libs/handlebars-1.0.0.beta.6.js');
  14. helpers.assertFile('app/scripts/libs/jquery-1.7.2.min.js');
  15. helpers.assertFile('app/index.html');
  16. helpers.assertFile('app/styles/style.css');
  17. helpers.assertFile('Gruntfile.js');
  18. });
  19. });