Skip to content
This repository has been archived by the owner on Jul 8, 2020. It is now read-only.

Commit

Permalink
fixes #306: put protractor tests in module folders
Browse files Browse the repository at this point in the history
  • Loading branch information
gruppjo committed Feb 12, 2016
1 parent f1bc4d6 commit 1277658
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion generators/module/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ module.exports = yeoman.Base.extend({
// [email protected]
this.copy('yo.png', modulePath + '/assets/images/[email protected]');
// 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', {
Expand Down
4 changes: 2 additions & 2 deletions test/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 1277658

Please sign in to comment.