testdouble / jasmine-rails

A Jasmine runner for rails projects that's got you covered in both the terminal and the browser
http://rubygems.org/gems/jasmine-rails
MIT License
378 stars 154 forks source link

Testing js-files in isolation: all tests all include application.js?! #164

Closed mugwump closed 9 years ago

mugwump commented 9 years ago

Our generated jasmine-specs.js-file is very huge: It seems to load everything from app/assets/javascripts - and so it produces errors totally unrelated to the file under test. I'm not sure, if I'm doing something wrong here or if this is the intended behaviour?! Does jasmine-rails include the application.js automatically? Is there a way/a configuration to prevent this?!

mugwump commented 9 years ago

oops, my bad, should have read the jasmine.yml, where it actually says:

src_files:
 - "application.{js.coffee,js,coffee}"