Override the urls for the spec files as well, inside require.
Showing
1 changed file
with
7 additions
and
1 deletions
... | @@ -41,6 +41,9 @@ module.exports = function (grunt) { | ... | @@ -41,6 +41,9 @@ module.exports = function (grunt) { |
41 | if (url.indexOf('src/scripts/') === 0) { | 41 | if (url.indexOf('src/scripts/') === 0) { |
42 | url = './.grunt/grunt-contrib-jasmine/' + url; | 42 | url = './.grunt/grunt-contrib-jasmine/' + url; |
43 | } | 43 | } |
44 | if (url.indexOf('test/specs/') === 0) { | ||
45 | url = './.grunt/grunt-contrib-jasmine/' + url; | ||
46 | } | ||
44 | //console.log('url=' + url); | 47 | //console.log('url=' + url); |
45 | return oldLoad.apply(this, [context, moduleName, url]); | 48 | return oldLoad.apply(this, [context, moduleName, url]); |
46 | }; | 49 | }; |
... | @@ -219,7 +222,10 @@ module.exports = function (grunt) { | ... | @@ -219,7 +222,10 @@ module.exports = function (grunt) { |
219 | 222 | ||
220 | jasmine: { | 223 | jasmine: { |
221 | all: { | 224 | all: { |
222 | src: '<%= yeoman.src %>/scripts/{,**/}*.js', | 225 | src: [ |
226 | '<%= yeoman.src %>/scripts/{,**/}*.js', | ||
227 | 'test/specs/**/*.spec.js', | ||
228 | ], | ||
223 | options: { | 229 | options: { |
224 | specs: 'test/specs/**/*.spec.js', | 230 | specs: 'test/specs/**/*.spec.js', |
225 | template: require('grunt-template-jasmine-istanbul'), | 231 | template: require('grunt-template-jasmine-istanbul'), | ... | ... |
-
Please register or sign in to post a comment