aboutsummaryrefslogblamecommitdiffstats
path: root/railties/lib/rails/test_unit/railtie.rb
blob: 878b9b79309bf4a917db9bd605a539c6f4b68723 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                                                           


                             

                                        
                                

                                                           

                                   
       

                 

                                         
     
   
if defined?(Rake.application) && Rake.application.top_level_tasks.grep(/^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

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