Permalink
Browse files

Generate tests for 'resource' generator as well

  • Loading branch information...
mde
mde committed Mar 31, 2013
1 parent b66d20c commit cadaeef7299c8c7c350eae563a6aa48852eb1d06
Showing with 2 additions and 0 deletions.
  1. +2 −0 templates/Jakefile
View
@@ -493,6 +493,8 @@ namespace('gen', function () {
modelTask.on('complete', function () {
jake.Task['gen:controller'].invoke(name);
jake.Task['gen:route'].invoke(name);
+ jake.Task['gen:test'].invoke(name,
+ {properties: modelProperties});
names = utils.string.getInflections(name);
// Create views folder but not actions
jake.mkdirP(path.join('app', 'views', names.filename.plural));

0 comments on commit cadaeef

Please sign in to comment.