requirejs-rails-jasmine-template icon indicating copy to clipboard operation
requirejs-rails-jasmine-template copied to clipboard

Support for rails 4 and ruby 2?

Open DanilloCorvalan opened this issue 11 years ago • 2 comments

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

DanilloCorvalan avatar Aug 13 '13 22:08 DanilloCorvalan

Also interested to know if it support Rails 4 or not.

mech avatar Sep 02 '13 02:09 mech

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 of jasmine_config.rb)
    • test runner file is specified by Jasmine.runner_template
  • 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)

alxndr avatar Oct 19 '14 23:10 alxndr