# File lib/spork/app_framework/rails.rb, line 97 def delay_eager_view_loading # So, in testing mode it seems it would be optimal to not eager load # views (as your may only run a test that uses one or two views). # However, I decided to delay eager loading rather than force it to # disable because you may wish to eager load your views (I.E. you're # testing concurrency) # Rails 2.3.x + if defined?(::ActionView::Template::EagerPath) Spork.trap_method(::ActionView::Template::EagerPath, :load!) end # Rails 2.2.x if defined?(::ActionView::PathSet::Path) Spork.trap_method(::ActionView::PathSet::Path, :load) end # Rails 2.0.5 - 2.1.x don't appear to eager cache views. end