requirejs-rails-jasmine-template
requirejs-rails-jasmine-template copied to clipboard
Support for rails 4 and ruby 2?
Actually it's giving a javascript exception (define is not defined). requirejs is not being loaded. It seems that the .rb helper file and the run.html.erb is not being consider, whatever you change over there is not being applyed when running the tests
Also interested to know if it support Rails 4 or not.
I've got some Jasmine 2 tests running in Rails 4 via requirejs-rails v0.9.5, taking cues from this post by Cina at Spiceworks:
- monkeypatching Jasmine via
jasmine_helper.rb
(instead ofjasmine_config.rb
)- test runner file is specified by
Jasmine.runner_template
- test runner file is specified by
- customize jasmine's boot JS to pull the list of specs to run from content in the runner file, and pass it to require as dependencies for starting the test run (instead of starting the run on
window.onload
)