Permalink
Browse files

Update readme to explain the prefix option

  • Loading branch information...
1 parent 94b74a6 commit 2c81cebfc3aa5ef6619e877c929c11e9fa75189c @dnagir committed Nov 7, 2011
Showing with 13 additions and 0 deletions.
  1. +13 −0 README.md
View
@@ -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.

0 comments on commit 2c81ceb

Please sign in to comment.