documentcloud / jammit

Industrial Strength Asset Packaging for Rails
http://documentcloud.github.com/jammit/
MIT License
1.16k stars 197 forks source link

Assets should not be packaged in test env #77

Closed jgeiger closed 13 years ago

jgeiger commented 13 years ago

When running cucumber scripts that use capybara and selenium, I ran into an issue where it kept trying to use the packaged file that had been created when I deployed instead of the new application.js I had edited.

It doesn't seem to make sense to package the assets in the test environment so this patch should fix this (or at least point to the starting location).

jashkenas commented 13 years ago

Thanks for this -- merged to master.

normally-andrew commented 12 years ago

Is there any way to turn asset packaging back on in the test environment? We're using Jammit to compile several javascript files into a single template namespace. This is breaking when we run our Capybara tests, since the files haven't been compiled (throws a JS error and therefore breaks everything).