{"action":"created","issue":{"url":"https://api.github.com/repos/Swiip/generator-gulp-angular/issues/666","labels_url":"https://api.github.com/repos/Swiip/generator-gulp-angular/issues/666/labels{/name}","comments_url":"https://api.github.com/repos/Swiip/generator-gulp-angular/issues/666/comments","events_url":"https://api.github.com/repos/Swiip/generator-gulp-angular/issues/666/events","html_url":"https://github.com/Swiip/generator-gulp-angular/issues/666","id":94589622,"number":666,"title":"Bug: Spec files are loaded in the browser","user":{"login":"RomFouq","id":3287952,"avatar_url":"https://avatars.githubusercontent.com/u/3287952?v=3","gravatar_id":"","url":"https://api.github.com/users/RomFouq","html_url":"https://github.com/RomFouq","followers_url":"https://api.github.com/users/RomFouq/followers","following_url":"https://api.github.com/users/RomFouq/following{/other_user}","gists_url":"https://api.github.com/users/RomFouq/gists{/gist_id}","starred_url":"https://api.github.com/users/RomFouq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RomFouq/subscriptions","organizations_url":"https://api.github.com/users/RomFouq/orgs","repos_url":"https://api.github.com/users/RomFouq/repos","events_url":"https://api.github.com/users/RomFouq/events{/privacy}","received_events_url":"https://api.github.com/users/RomFouq/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-12T18:32:47Z","updated_at":"2015-07-14T13:56:35Z","closed_at":null,"body":"Spec files seem to be loaded in the browser and that leads errors to be thrown, like `ReferenceError: inject is not defined`, since Jasmine isn't loaded.\r\n\r\nI add spec files in the `app` folder, with the same structure as the base generator, but they don't seem to be excluded in injection. Indeed, I found they are explicitly injected in the html, just by opening the Inspector.\r\nI think this problem comes from these lines: https://github.com/Swiip/generator-gulp-angular/blob/master/app/templates/gulp/_inject.js#L37, since I just have these:\r\n```javascript\r\nvar injectScripts = gulp.src([\r\n    path.join(conf.paths.src, '/app/**/*.module.js'),\r\n    path.join(conf.paths.src, '/app/**/*.js'),\r\n    path.join(conf.paths.tmp, '/serve/app/**/*.module.js'),\r\n    path.join(conf.paths.tmp, '/serve/app/**/*.js'),\r\n    path.join('!' + conf.paths.src, '/app/**/*.spec.js'),\r\n    path.join('!' + conf.paths.src, '/app/**/*.mock.js')\r\n  ])\r\n```\r\n\r\nNote: I use coffee for tests and v0.12.1 of this generator."},"comment":{"url":"https://api.github.com/repos/Swiip/generator-gulp-angular/issues/comments/121246229","html_url":"https://github.com/Swiip/generator-gulp-angular/issues/666#issuecomment-121246229","issue_url":"https://api.github.com/repos/Swiip/generator-gulp-angular/issues/666","id":121246229,"user":{"login":"Swiip","id":475895,"avatar_url":"https://avatars.githubusercontent.com/u/475895?v=3","gravatar_id":"","url":"https://api.github.com/users/Swiip","html_url":"https://github.com/Swiip","followers_url":"https://api.github.com/users/Swiip/followers","following_url":"https://api.github.com/users/Swiip/following{/other_user}","gists_url":"https://api.github.com/users/Swiip/gists{/gist_id}","starred_url":"https://api.github.com/users/Swiip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Swiip/subscriptions","organizations_url":"https://api.github.com/users/Swiip/orgs","repos_url":"https://api.github.com/users/Swiip/repos","events_url":"https://api.github.com/users/Swiip/events{/privacy}","received_events_url":"https://api.github.com/users/Swiip/received_events","type":"User","site_admin":false},"created_at":"2015-07-14T13:56:35Z","updated_at":"2015-07-14T13:56:35Z","body":"Yep thanks @wgorder fix in master..."}}