test-ember.js 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. var path = require('path');
  2. var helpers = require('../..').test;
  3. describe('Ember generator test', function() {
  4. before(helpers.before(path.join(__dirname, './temp')));
  5. it('runs sucessfully', function(done) {
  6. helpers.runGenerator('ember', done);
  7. });
  8. it('creates expected files', function() {
  9. helpers.assertFile('app/scripts/models');
  10. helpers.assertFile('app/scripts/controllers');
  11. helpers.assertFile('app/scripts/views');
  12. helpers.assertFile('app/scripts/routes');
  13. helpers.assertFile('app/scripts/helpers');
  14. helpers.assertFile('app/scripts/templates');
  15. helpers.assertFile('app/scripts/main.js');
  16. helpers.assertFile('app/scripts/routes/app-router.js');
  17. helpers.assertFile('app/scripts/store.js');
  18. helpers.assertFile('.gitattributes');
  19. helpers.assertFile('.gitignore');
  20. helpers.assertFile('app/.htaccess');
  21. helpers.assertFile('app/404.html');
  22. helpers.assertFile('app/favicon.ico');
  23. helpers.assertFile('app/index.html');
  24. helpers.assertFile('app/robots.txt');
  25. helpers.assertFile('app/scripts/vendor/ember-1.0.pre.min.js');
  26. helpers.assertFile('app/scripts/vendor/handlebars-1.0.0.beta.6.js');
  27. helpers.assertFile('app/scripts/vendor/jquery.min.js');
  28. helpers.assertFile('app/styles/main.css');
  29. helpers.assertFile('Gruntfile.js');
  30. helpers.assertFile('package.json');
  31. helpers.assertFile('test/index.html');
  32. helpers.assertFile('test/lib/chai.js');
  33. helpers.assertFile('test/lib/expect.js');
  34. helpers.assertFile('test/lib/mocha-1.2.2/mocha.css');
  35. helpers.assertFile('test/lib/mocha-1.2.2/mocha.js');
  36. helpers.assertFile('test/runner/mocha.js');
  37. helpers.assertFile('app/scripts/views/application-view.js');
  38. helpers.assertFile('app/scripts/templates/application.handlebars');
  39. helpers.assertFile('app/scripts/models/application-model.js');
  40. helpers.assertFile('app/scripts/controllers/application-controller.js');
  41. });
  42. });