Sha256: 5d4d1ae8c88131108f307a3deb4298b1415c998869cdf503a63a86c524371257

Contents?: true

Size: 1.22 KB

Versions: 2

Compression:

Stored size: 1.22 KB

Contents

### Jasmine Rails Configuration file
  There is only 1 main configuration file called `jasmine.yml` located in `spec/javascripts/support/jasmine.yml`. The yml can only be read with modified `jasmine-rails` [gem](https://github.com/chuenlok/jasmine-rails) as we need to parse it as ERB before loading as a normal yml. Wagn path cannot be hard coded to configuration file so we need `Jasmine-Rails` to parse `Wagn.gem_root` when reading the yml file.
  
#### Explaination 
  Most of the things are same with default settings. However, the `src_dir` and `css_dir` are not working as they are pointed to `app/assets` folder which is the default path of the asset pipeline. The important setting is `include_dir`. This will inlcude things outside app folder into the asset pipeline. That means, things inside Wagn gem and folder `mod` can be included in this way.
  For core testing, the default settings now will include the js and coffee inside `mod/03_machines/lib/javascript`. For mod development, the default settings now will include the js and coffee inside `mod`.
  
  
#### How to run
1. just like the way to create a deck to test core or mod-dev
2. configure the `spec/javascripts/support/jasmine.yml` if neccessary
3. `bundle exec wagn jm`


  
  

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
wagn-1.14.9 JASMINE_RAILS_TEST.md
wagn-1.14.8 JASMINE_RAILS_TEST.md