I have the following in config/environments/test.rb:
config.assets.debug = true
config.assets.enabled = true
I get all my js files concatenated into application.js
However, when I do the same in development, I get javascript file included by itself.
Is there a way to make test (I’m using cucumber) behave like development?
The reason I’m asking is because I would like to be able to modify javascript and run my cucumber tests right away instead of having to do rake assets:precompile RAILS_ENV=test every time.
Thanks!
I turns out I had a stupid hard coded line:
I had the following code and I suggest you never pass the :debug option to javascript_include_tag but instead, configure everything in your development.rb and test.rb.