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

Cleanup the test_unit generator move into the railtie

This commit is contained in:
Carl Lerche 2010-01-28 10:17:41 -08:00
parent 6268fcdc30
commit 252911e378
2 changed files with 9 additions and 8 deletions

View file

@ -52,8 +52,8 @@ module Rails
:helper => true,
:layout => true,
:orm => :active_record,
:integration_tool => :test_unit,
:performance_tool => :test_unit,
:integration_tool => nil,
:performance_tool => nil,
:resource_controller => :controller,
:scaffold_controller => :scaffold_controller,
:singleton => false,
@ -62,11 +62,6 @@ module Rails
:template_engine => :erb
},
:test_unit => {
:fixture => true,
:fixture_replacement => nil
},
:plugin => {
:generator => false,
:tasks => false

View file

@ -2,7 +2,13 @@ module Rails
class TestUnitRailtie < Rails::Railtie
railtie_name :test_unit
config.generators.test_framework :test_unit
config.generators do |c|
c.test_framework :test_unit, :fixture => true,
:fixture_replacement => nil
c.integration_tool :test_unit
c.performance_tool :test_unit
end
rake_tasks do
load "rails/tasks/testing.rake"