Skip to content

Commit

Permalink
Autoload AC and AV test case classes
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed Jan 4, 2010
1 parent 45462c5 commit cf83a6f
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 11 deletions.
8 changes: 5 additions & 3 deletions actionpack/lib/action_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion actionpack/lib/action_controller/test_case.rb
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 2 additions & 0 deletions actionpack/lib/action_view.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
1 change: 0 additions & 1 deletion actionpack/lib/action_view/test_case.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
require 'active_support/test_case'
require 'action_controller/test_case'

module ActionView
class Base
Expand Down
1 change: 0 additions & 1 deletion actionpack/test/abstract_unit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
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__)
Expand Down
4 changes: 0 additions & 4 deletions railties/lib/rails/test_help.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
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)

Expand Down
1 change: 0 additions & 1 deletion railties/test/rails_info_controller_test.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
require 'abstract_unit'
require 'action_controller'
require 'action_controller/test_case'

require 'rails/info'
require 'rails/info_controller'
Expand Down

0 comments on commit cf83a6f

Please sign in to comment.