This PR sets up two on_load hooks to include the ActionController and Routing matchers modules into ActionController::TestCase. They run only when ActionController::TestCase is loaded rather than immediately whenever the integrate_with method is called.
This change should improve app booting performance by delaying the inclusion of the matchers until they are actually needed.
This PR sets up two
on_load
hooks to include theActionController
andRouting
matchers modules intoActionController::TestCase
. They run only whenActionController::TestCase
is loaded rather than immediately whenever theintegrate_with
method is called.This change should improve app booting performance by delaying the inclusion of the matchers until they are actually needed.