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.5"

Class Method Summary collapse

Class Method Details

.installObject



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/rails/controller/testing.rb', line 9

def self.install
  ActiveSupport.on_load(:action_controller_test_case) do
    include Rails::Controller::Testing::TestProcess
    include Rails::Controller::Testing::TemplateAssertions
  end

  ActiveSupport.on_load(:action_dispatch_integration_test) do
    include Rails::Controller::Testing::TemplateAssertions
    include Rails::Controller::Testing::Integration
    include Rails::Controller::Testing::TestProcess
  end

  ActiveSupport.on_load(:action_view_test_case) do
    include Rails::Controller::Testing::TemplateAssertions
  end
end