Sha256: 67923245e4bab645f5090984b2b25b649af3cb932e45a48fead5f966bc8e5c3f

Contents?: true

Size: 890 Bytes

Versions: 7

Compression:

Stored size: 890 Bytes

Contents

require 'active_support/lazy_load_hooks'
require 'rails/controller/testing/test_process'
require 'rails/controller/testing/integration'
require 'rails/controller/testing/template_assertions'

module Rails
  module Controller
    module Testing
      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
    end
  end
end

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/rails-controller-testing-1.0.5/lib/rails/controller/testing.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/rails-controller-testing-1.0.5/lib/rails/controller/testing.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/rails-controller-testing-1.0.5/lib/rails/controller/testing.rb
rails-controller-testing-1.0.5 lib/rails/controller/testing.rb
rails-controller-testing-1.0.4 lib/rails/controller/testing.rb
rails-controller-testing-1.0.3 lib/rails/controller/testing.rb
rails-controller-testing-1.0.2 lib/rails/controller/testing.rb