Skip to content
This repository was archived by the owner on Sep 18, 2024. It is now read-only.

Commit 8a6c2a6

Browse files
committed
fix #110, typo, delete test folder when tests complete
1 parent 56d3717 commit 8a6c2a6

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

app/templates/mvc-coffee/app/models/article.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ module.exports = (sequelize, DataTypes) ->
2525
associate (models) ->
2626
# example on how to add relations
2727
# Article.hasMany models.Comments
28-
<% } %><% if(options.database == 'rethinkdb'%>
28+
<% } %><% if(options.database == 'rethinkdb'){%>
2929
thinky = require('../../config/thinky')
3030
r = thinky.r
3131
type = thinky.type
@@ -37,7 +37,7 @@ Article = thinky.createModel 'Article',
3737

3838
module.exports = Article
3939

40-
# example on hour to add relations
40+
# example on how to add relations
4141
# Comment = require('./comment')
4242
# Article.hasMany(Comment, 'comments', 'id', 'article_id')
4343
<% } %>

app/templates/mvc/app/models/article.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ var Article = thinky.createModel('Article', {
5555

5656
module.exports = Article;
5757

58-
// example on hour to add relations
58+
// example on how to add relations
5959
// var Comment = require('./comment');
6060
// Article.hasMany(Comment, 'comments', 'id', 'article_id');
6161
<% } %>

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
"yeoman-generator": "~0.18.4"
3434
},
3535
"devDependencies": {
36-
"mocha": "~2.1.0"
36+
"mocha": "~2.1.0",
37+
"rimraf": "^2.3.2"
3738
},
3839
"engines": {
3940
"node": ">=0.8.0"

test/test-creation.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
var assert = require('yeoman-generator').assert;
55
var path = require('path');
66
var helpers = require('yeoman-generator').test;
7+
var rimraf = require('rimraf');
78

89
var basicExpected = [
910
'.bowerrc',
@@ -105,6 +106,11 @@ var runGenerationTest = function (extraFiles, type, engine, preprocessor, coffee
105106
};
106107

107108
describe('Express generator', function () {
109+
110+
after(function (done) {
111+
rimraf(__dirname + '/temp', done);
112+
});
113+
108114
beforeEach(function (done) {
109115
helpers.testDirectory(path.join(__dirname, 'temp'), function (err) {
110116
if (err) {

0 commit comments

Comments
 (0)