Skip to content

Commit

Permalink
splitting by path.sep was not working on windows I hard coded by '/' …
Browse files Browse the repository at this point in the history
…and it worked
  • Loading branch information
glamb committed Apr 15, 2015
1 parent 0334d6a commit 56b3d79
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ module.exports = yeoman.generators.Base.extend({

configuring: {
enforceFolderName: function () {
if (this.appname !==_.last(this.destinationRoot().split(path.sep))) {
if (this.appname !==_.last(this.destinationRoot().split('/'))) {
this.destinationRoot(this.appname);
}
this.config.save();
Expand Down
2 changes: 1 addition & 1 deletion page/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = yeoman.generators.Base.extend({
suiteBootstrapper: function () {
var suiteDirs = this.expand('tests/*/');
_.forEach(suiteDirs, function(suite) {
var s = suite.split(path.sep);
var s = suite.split('/');
suites.push(s[1]);
});

Expand Down
4 changes: 2 additions & 2 deletions suite/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = yeoman.generators.Base.extend({
initializing: function () {
var suiteDirs = this.expand('tests/*/');
_.forEach(suiteDirs, function(suite) {
var s = suite.split(path.sep);
var s = suite.split('/');
suites.push(s[1]);
});

Expand Down Expand Up @@ -50,7 +50,7 @@ module.exports = yeoman.generators.Base.extend({
suiteBootstrapper: function () {
var testSuites = this.expand('tests/'+this.pageName+'/*');
_.forEach(testSuites, function(test) {
tests.push(_.last(test.split(path.sep)));
tests.push(_.last(test.split('/')));
});
_.pull(tests, 'all.js');

Expand Down

0 comments on commit 56b3d79

Please sign in to comment.