note on asset_paths
This commit is contained in:
parent
31ef32a36a
commit
2bf6b32b9d
11
index.md
11
index.md
@ -229,6 +229,17 @@ src_dir:
|
|||||||
_Technically, `spec_dir` is in your asset path, too, but Jasmine's typical behavior of including `helpers` before `spec_dir` should
|
_Technically, `spec_dir` is in your asset path, too, but Jasmine's typical behavior of including `helpers` before `spec_dir` should
|
||||||
give you all the include power you need for defining specs._
|
give you all the include power you need for defining specs._
|
||||||
|
|
||||||
|
If you want to keep `src_dir` as a string for backwards compatibility, you can add additional asset paths with, you guessed it, `asset_paths`:
|
||||||
|
|
||||||
|
{% highlight yaml %}
|
||||||
|
src_dir: app/assets/javascripts
|
||||||
|
|
||||||
|
asset_paths:
|
||||||
|
- vendor/assets/javascripts
|
||||||
|
{% endhighlight %}
|
||||||
|
|
||||||
|
`asset_paths` are added to the Sprockets asset paths after `src_dir`.
|
||||||
|
|
||||||
In order for Sprockets support to work as intended, you should define your `src_files` and `spec_files` as such:
|
In order for Sprockets support to work as intended, you should define your `src_files` and `spec_files` as such:
|
||||||
|
|
||||||
{% highlight yaml %}
|
{% highlight yaml %}
|
||||||
|
Loading…
Reference in New Issue
Block a user