diff --git a/generators/module/index.js b/generators/module/index.js index 78167f6..0f16842 100644 --- a/generators/module/index.js +++ b/generators/module/index.js @@ -105,7 +105,7 @@ module.exports = yeoman.Base.extend({ // yo@2x.png this.copy('yo.png', modulePath + '/assets/images/yo@2x.png'); // spec file - this.template('_module-debug.spec.js', 'test/protractor/' + this.moduleFolder + '-debug.spec.js'); + this.template('_module-debug.spec.js', 'test/protractor/' + this.moduleFolder + '/debug.spec.js'); // debug this.composeWith('m-ionic:controller', { diff --git a/test/module.js b/test/module.js index afb1e58..04c360f 100644 --- a/test/module.js +++ b/test/module.js @@ -106,7 +106,7 @@ describe('m-ionic:module', function () { if (options && options.mainModule) { debugCtrlFile = modulePath + '/controllers/debug-ctrl.js'; debugCtrlName = utils.controllerName('Debug'); - debugSpecFile = 'test/protractor/main-debug.spec.js'; + debugSpecFile = 'test/protractor/main/debug.spec.js'; configName = utils.configName(); // module.js @@ -116,7 +116,7 @@ describe('m-ionic:module', function () { else { debugCtrlFile = modulePath + '/controllers/' + moduleFolder + '-debug-ctrl.js'; debugCtrlName = utils.controllerName(moduleName + 'Debug'); - debugSpecFile = 'test/protractor/' + moduleFolder + '-debug.spec.js'; + debugSpecFile = 'test/protractor/' + moduleFolder + '/debug.spec.js'; configName = utils.configName(moduleName); // module.js