blob: 511cee33bd6341d05a276b81e90a738a20d3cb2f (
plain) (
tree)
|
|
require 'rails/test_unit/line_filtering'
if defined?(Rake.application) && Rake.application.top_level_tasks.grep(/^(default$|test(:|$))/).any?
ENV['RAILS_ENV'] ||= '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
end
initializer "test_unit.line_filtering" do
ActiveSupport::TestCase.extend Rails::LineFiltering
end
rake_tasks do
load "rails/test_unit/testing.rake"
end
end
end
|