mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Autoload AC and AV test case classes
This commit is contained in:
parent
45462c5e41
commit
cf83a6f16b
7 changed files with 7 additions and 11 deletions
|
@ -27,22 +27,24 @@ module ActionController
|
|||
autoload :MimeResponds
|
||||
autoload :RackDelegation
|
||||
autoload :Redirecting
|
||||
autoload :Rendering
|
||||
autoload :Renderers
|
||||
autoload :Rendering
|
||||
autoload :RequestForgeryProtection
|
||||
autoload :Rescue
|
||||
autoload :Responder
|
||||
autoload :SessionManagement
|
||||
autoload :Streaming
|
||||
autoload :Testing
|
||||
autoload :UrlFor
|
||||
autoload :Verification
|
||||
end
|
||||
|
||||
autoload :Dispatcher, 'action_controller/dispatch/dispatcher'
|
||||
autoload :PerformanceTest, 'action_controller/deprecated/performance_test'
|
||||
autoload :Routing, 'action_controller/deprecated'
|
||||
autoload :Integration, 'action_controller/deprecated/integration_test'
|
||||
autoload :IntegrationTest, 'action_controller/deprecated/integration_test'
|
||||
autoload :PerformanceTest, 'action_controller/deprecated/performance_test'
|
||||
autoload :Routing, 'action_controller/deprecated'
|
||||
autoload :TestCase, 'action_controller/test_case'
|
||||
|
||||
eager_autoload do
|
||||
autoload :RecordIdentifier
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
require 'active_support/test_case'
|
||||
require 'rack/session/abstract/id'
|
||||
require 'action_controller/metal/testing'
|
||||
|
||||
module ActionController
|
||||
class TestRequest < ActionDispatch::TestRequest #:nodoc:
|
||||
|
|
|
@ -52,6 +52,8 @@ module ActionView
|
|||
autoload :TemplateHandler, 'action_view/template'
|
||||
autoload :TemplateHandlers, 'action_view/template'
|
||||
end
|
||||
|
||||
autoload :TestCase, 'action_view/test_case'
|
||||
end
|
||||
|
||||
require 'action_view/erb/util'
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
require 'active_support/test_case'
|
||||
require 'action_controller/test_case'
|
||||
|
||||
module ActionView
|
||||
class Base
|
||||
|
|
|
@ -20,7 +20,6 @@ require 'action_view/base'
|
|||
require 'action_dispatch'
|
||||
require 'fixture_template'
|
||||
require 'active_support/test_case'
|
||||
require 'action_view/test_case'
|
||||
require 'active_support/dependencies'
|
||||
|
||||
activemodel_path = File.expand_path('../../../activemodel/lib', __FILE__)
|
||||
|
|
|
@ -8,10 +8,6 @@ require 'rack/test'
|
|||
require 'test/unit'
|
||||
require 'active_support/core_ext/kernel/requires'
|
||||
|
||||
# AP is always present
|
||||
require 'action_controller/test_case'
|
||||
require 'action_view/test_case'
|
||||
|
||||
require 'action_mailer/test_case' if defined?(ActionMailer)
|
||||
require 'active_model/test_case' if defined?(ActiveModel)
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
require 'abstract_unit'
|
||||
require 'action_controller'
|
||||
require 'action_controller/test_case'
|
||||
|
||||
require 'rails/info'
|
||||
require 'rails/info_controller'
|
||||
|
|
Loading…
Reference in a new issue