Sha256: c3f88a97ffdb4d4716de8f16edd8d061dce0ef8578746808dccf2c184e408161

Contents?: true

Size: 796 Bytes

Versions: 126

Compression:

Stored size: 796 Bytes

Contents

# frozen_string_literal: true

require "rails/test_unit/line_filtering"

if defined?(Rake.application) && Rake.application.top_level_tasks.grep(/^(default$|test(:|$))/).any?
  ENV["RAILS_ENV"] ||= Rake.application.options.show_tasks ? "development" : "test"
end

module Rails
  class TestUnitRailtie < Rails::Railtie
    config.app_generators do |c|
      c.test_framework :test_unit, fixture: true,
                                   fixture_replacement: nil

      c.integration_tool :test_unit
      c.system_tests :test_unit
    end

    initializer "test_unit.line_filtering" do
      ActiveSupport.on_load(:active_support_test_case) {
        ActiveSupport::TestCase.extend Rails::LineFiltering
      }
    end

    rake_tasks do
      load "rails/test_unit/testing.rake"
    end
  end
end

Version data entries

126 entries across 118 versions & 9 rubygems

Version Path
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/railties-6.0.0/lib/rails/test_unit/railtie.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/railties-6.0.1/lib/rails/test_unit/railtie.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/railties-5.2.3/lib/rails/test_unit/railtie.rb
railties-5.2.4 lib/rails/test_unit/railtie.rb
railties-6.0.2.rc1 lib/rails/test_unit/railtie.rb
railties-5.2.4.rc1 lib/rails/test_unit/railtie.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/railties-5.2.3/lib/rails/test_unit/railtie.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/railties-6.0.0/lib/rails/test_unit/railtie.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/railties-6.0.1/lib/rails/test_unit/railtie.rb
railties-6.0.1 lib/rails/test_unit/railtie.rb
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/railties-6.0.0/lib/rails/test_unit/railtie.rb
railties-6.0.1.rc1 lib/rails/test_unit/railtie.rb
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/railties-6.0.0/lib/rails/test_unit/railtie.rb
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/railties-6.0.0/lib/rails/test_unit/railtie.rb
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/railties-5.2.3/lib/rails/test_unit/railtie.rb
zuora_connect_ui-0.9.0 vendor/ruby/2.6.0/gems/railties-5.2.3/lib/rails/test_unit/railtie.rb
zuora_connect_ui-0.9.0 vendor/ruby/2.6.0/gems/railties-6.0.0/lib/rails/test_unit/railtie.rb
zuora_connect_ui-0.8.3 vendor/ruby/2.6.0/gems/railties-6.0.0/lib/rails/test_unit/railtie.rb
zuora_connect_ui-0.8.3 vendor/ruby/2.6.0/gems/railties-5.2.3/lib/rails/test_unit/railtie.rb
zuora_connect_ui-0.8.2 vendor/ruby/2.6.0/gems/railties-6.0.0/lib/rails/test_unit/railtie.rb