1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/lib/rails/test_unit/railtie.rb

19 lines
457 B
Ruby
Raw Normal View History

if defined?(Rake.application) && Rake.application.top_level_tasks.grep(/^(default$|test(:|$))/).any?
ENV['RAILS_ENV'] ||= 'test'
end
2010-01-27 20:39:11 -05:00
module Rails
class TestUnitRailtie < Rails::Railtie
config.app_generators do |c|
2012-10-14 06:03:39 -04:00
c.test_framework :test_unit, fixture: true,
fixture_replacement: nil
c.integration_tool :test_unit
end
2010-01-27 20:39:11 -05:00
rake_tasks do
load "rails/test_unit/testing.rake"
end
2010-01-27 20:39:11 -05:00
end
end