documentcloud / jammit

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

turning off package_assets in different environments #40

Closed agibralter closed 14 years ago

agibralter commented 14 years ago

Is there a way to set package_assets to false on a per-environment basis? Or what would you recommend for cucumber/integration tests? Right now the first time my cucumber features run they generate JS/CSS, and after that, they don't.

jashkenas commented 14 years ago

Yes. assets.yml is piped through ERB before being used, so you can configure it in whatever environment-specific way you need to. See this ticket:

http://github.com/documentcloud/jammit/issues/closed#issue/37

agibralter commented 14 years ago

Ah sorry -- thought I had seen that somewhere. Thanks!

Now... would you recommend packaging assets for cucumber features to make them more "real?"

jashkenas commented 14 years ago

I wouldn't. The usefulness of tests is in inverse proportion to how long they take to run, no?

agibralter commented 14 years ago

True, true. Thanks again!