jasminerice
jasminerice copied to clipboard
Use with dummy test app for Rails Plugin
Jasminerice doesn't seem to work with the Rails plugin.
rails plugin new mine
cd mine
bundle install
# install the jasminerice
cd tests/dummy
bundle exec rails s
# http://localhost:3000/jasmine -> RoutingError
Is there a way to make it work for the dummy test application?
The workaround is to require jasminerice from application.rb.
And also load spec/javascript dir to load paths.
Perhaps add this to wiki
Please, write more about testing with jasminerice in my gem project. Realy I can use dummy app?
I wrote a blog post about using Jasmine in a Rails engine which uses jasminerice. It might be useful for anyone finding this.