railsTemplate.js 718 B

1234567891011121314151617181920
  1. 'use strict';
  2. describe('railsTemplate plugin', function() {
  3. var env = require('jsdoc/env');
  4. var path = require('jsdoc/path');
  5. var parser = jasmine.createParser();
  6. var pluginPath = path.join(env.dirname, 'plugins/railsTemplate');
  7. var plugin = require(pluginPath);
  8. require('jsdoc/plugins').installPlugins([pluginPath], parser);
  9. require('jsdoc/src/handlers').attachTo(parser);
  10. it('should remove <% %> rails template tags from the source of *.erb files', function() {
  11. var docSet = parser.parse([path.join(env.dirname, 'plugins/test/fixtures/railsTemplate.js.erb')]);
  12. expect(docSet[2].description).toEqual('Remove rails tags from the source input (e.g. )');
  13. });
  14. });