testdouble / jasmine-rails

A Jasmine runner for rails projects that's got you covered in both the terminal and the browser
http://rubygems.org/gems/jasmine-rails
MIT License
377 stars 154 forks source link

Suggest that users run with RAILS_ENV=test #221

Open booch opened 6 years ago

booch commented 6 years ago

It would be nice to suggest that users run:

RAILS_ENV=test bundle exec rake spec:javascript

instead of

bundle exec rake spec:javascript

The later ends up loading Rails twice (due to the fact that if RAILS_ENV is not set, the rake task reruns itself with RAILS_ENV=test prepended).

searls commented 6 years ago

Sure. At least until we can sort out how to resolve the underlying issue of defining a rake task at all under Rails 4+ without loading appliaction

booch commented 6 years ago

LOL, yeah. I'm not sure there's actually a solution to that. :(