From 2c81cebfc3aa5ef6619e877c929c11e9fa75189c Mon Sep 17 00:00:00 2001 From: Dmytrii Nagirniak Date: Tue, 8 Nov 2011 09:24:35 +1100 Subject: [PATCH] Update readme to explain the prefix option --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 2c9f2e8..01147f5 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,19 @@ Add guard definition to your `Guardfile` by running: $ bundle exec guard init rails-assets ``` +## Configuration for Jasmine +In order to make it work better with Jasmine it is recommended to explicitly move files precompiled for testing into a separate directory. +This way it doesn't conflict with any files in `public/assets`. + +This is optional and you can skip it for now. + +Bu if you are in for that, then: + +1. Add the option `config.assets.prefix = 'public/assets-test'` to `config/environments/test.rb` . +2. Replace all `public/assets` with `public/assets-test` in `spec/javascripts/support/jasmine.yml`. +3. Add `public/assets*` to your `.gitignore` (if you haven't yet). + + ## Options In addition to the guard configuration, `guard-rails-assets` has options to specify when exacly to precompile assets.