jstorimer / spin

Spin speeds up your Rails testing workflow by preloading your Rails environment.

Home Page:http://jstorimer.github.com/spin/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reloading dependencies

fabiokr opened this issue · comments

Any thoughts on how can I make spin reload dependencies that were loaded with "require_dependency"? I have tried a couple things without success:

  • set cache_classes = false in the test env
  • added before/after fork hooks with:
ActiveSupport::DescendantsTracker.clear
ActiveSupport::Dependencies.clear
ActionDispatch::Reloader.cleanup!
ActionDispatch::Reloader.prepare!

Which require_dependency do you mean?