diff --git a/railties/lib/rails/test_help.rb b/railties/lib/rails/test_help.rb index d52bb46728..5cf44e6331 100644 --- a/railties/lib/rails/test_help.rb +++ b/railties/lib/rails/test_help.rb @@ -27,15 +27,13 @@ if defined?(ActiveRecord::Base) end class ActionController::TestCase - def setup + setup do @routes = Rails.application.routes - super end end class ActionDispatch::IntegrationTest - def setup + setup do @routes = Rails.application.routes - super end end