Hold off drawing routes until all the possible controller classes have been loaded.

Hold off drawing routes until all the possible controller classes have been loaded.

Methods
B
Attributes
[RW] drew
Instance Public methods
before_setup()
# File actionpack/test/abstract_unit.rb, line 97
def before_setup
  super
  return if DrawOnce.drew

  SharedTestRoutes.draw do
    get ':controller(/:action)'
  end

  ActionDispatch::IntegrationTest.app.routes.draw do
    get ':controller(/:action)'
  end

  DrawOnce.drew = true
end