diff --git a/Gruntfile.js b/Gruntfile.js index 42baba1..42ddfda 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -9,7 +9,7 @@ module.exports = function(grunt) { test: { options: { reporter: 'spec', - require: 'coffee-script' + require: 'coffee-script/register' }, src: ['test/**/*.coffee','test/**/*.js'] } diff --git a/generators/script/templates/Gruntfile.js b/generators/script/templates/Gruntfile.js index 30deb8a..feac40e 100644 --- a/generators/script/templates/Gruntfile.js +++ b/generators/script/templates/Gruntfile.js @@ -7,7 +7,7 @@ module.exports = function (grunt) { test: { options: { reporter: 'spec', - require: 'coffee-script' + require: 'coffee-script/register' }, src: ['test/**/*.coffee'] } diff --git a/generators/script/templates/script/test b/generators/script/templates/script/test index e142362..a67a39f 100755 --- a/generators/script/templates/script/test +++ b/generators/script/templates/script/test @@ -3,4 +3,4 @@ # bootstrap environment source script/bootstrap -mocha --compilers coffee:coffee-script \ No newline at end of file +mocha --compilers coffee:coffee-script/register \ No newline at end of file