diff options
author | Carl Lerche <carllerche@mac.com> | 2010-01-28 10:17:41 -0800 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2010-01-28 10:17:41 -0800 |
commit | 252911e37897e1fd6f353f8e2002de3031275612 (patch) | |
tree | ea9f79d854e14e59bc4972472823e0a23e8c22c9 /railties/lib/rails | |
parent | 6268fcdc3083496d3336cfcecac2868e17f8d3b6 (diff) | |
download | rails-252911e37897e1fd6f353f8e2002de3031275612.tar.gz rails-252911e37897e1fd6f353f8e2002de3031275612.tar.bz2 rails-252911e37897e1fd6f353f8e2002de3031275612.zip |
Cleanup the test_unit generator move into the railtie
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/generators.rb | 9 | ||||
-rw-r--r-- | railties/lib/rails/test_unit/railtie.rb | 8 |
2 files changed, 9 insertions, 8 deletions
diff --git a/railties/lib/rails/generators.rb b/railties/lib/rails/generators.rb index 421f3df474..41dec3a120 100644 --- a/railties/lib/rails/generators.rb +++ b/railties/lib/rails/generators.rb @@ -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 diff --git a/railties/lib/rails/test_unit/railtie.rb b/railties/lib/rails/test_unit/railtie.rb index 6858e8ebbd..f93dace9bb 100644 --- a/railties/lib/rails/test_unit/railtie.rb +++ b/railties/lib/rails/test_unit/railtie.rb @@ -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" |