Closed rwz closed 12 years ago
This commit fixed mountable engine behavior for me
https://github.com/rwz/jasmine-rails/commit/9c3a229aed572f58c66aa7e8985a0ba813caa065
:+1: Good work! This looks sound and seems reasonable. Next time I'm looking at jasmine-rails I'll try to address this.
I can send a pull request if you wish.
That'd be great. I have a feeling that the fix might be even simper if you can work it into the JhwAdapter listing that drives both the JS & CSS file listings
+1 i just lost an hour before finding this issue.
Steps to reproduce:
jasmine-rails
gemsrc_files
toapplication.js
injasmine.yml
JasmineRails::JhwAdapter.new.js_files
returns this:Basically, it expands sprocket require calls from
application.js
file and then include the file itself. Railsjavascript_include_tag
includes all sprockets requires manually and then tries to includeapplications.js
, sees sprocket require calls in it, expands them and includesjquery
andjquery_ujs
again.Expected behavior here would be just stupidly include
application.js
and let rails handle the rest.