Module: Rails::Controller::Testing
- Defined in:
- lib/rails/controller/testing.rb,
lib/rails/controller/testing/version.rb,
lib/rails/controller/testing/integration.rb,
lib/rails/controller/testing/test_process.rb,
lib/rails/controller/testing/template_assertions.rb
Defined Under Namespace
Modules: Integration, TemplateAssertions, TestProcess Classes: Railtie
Constant Summary collapse
- VERSION =
"1.0.1"
Class Method Summary collapse
Class Method Details
.install ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/rails/controller/testing.rb', line 9 def self.install ActiveSupport.on_load(:action_controller) do ActionController::TestCase.include Rails::Controller::Testing::TestProcess ActionController::TestCase.include Rails::Controller::Testing::TemplateAssertions ActionDispatch::IntegrationTest.include Rails::Controller::Testing::TemplateAssertions ActionDispatch::IntegrationTest.include Rails::Controller::Testing::Integration ActionDispatch::IntegrationTest.include Rails::Controller::Testing::TestProcess end ActiveSupport.on_load(:action_view) do ActionView::TestCase.include Rails::Controller::Testing::TemplateAssertions end end |