Sha256: 5bc54a11235b26ce46555f76a284038174313a80f6513cf57e75d0038dace668

Contents?: true

Size: 765 Bytes

Versions: 16

Compression:

Stored size: 765 Bytes

Contents

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

16 entries across 16 versions & 1 rubygems

Version Path
railties-5.1.7 lib/rails/test_unit/railtie.rb
railties-5.1.7.rc1 lib/rails/test_unit/railtie.rb
railties-5.1.6.2 lib/rails/test_unit/railtie.rb
railties-5.1.6.1 lib/rails/test_unit/railtie.rb
railties-5.1.6 lib/rails/test_unit/railtie.rb
railties-5.1.5 lib/rails/test_unit/railtie.rb
railties-5.1.5.rc1 lib/rails/test_unit/railtie.rb
railties-5.1.4 lib/rails/test_unit/railtie.rb
railties-5.1.4.rc1 lib/rails/test_unit/railtie.rb
railties-5.1.3 lib/rails/test_unit/railtie.rb
railties-5.1.3.rc3 lib/rails/test_unit/railtie.rb
railties-5.1.3.rc2 lib/rails/test_unit/railtie.rb
railties-5.1.3.rc1 lib/rails/test_unit/railtie.rb
railties-5.1.2 lib/rails/test_unit/railtie.rb
railties-5.1.2.rc1 lib/rails/test_unit/railtie.rb
railties-5.1.1 lib/rails/test_unit/railtie.rb