Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Cleanup the test_unit generator move into the railtie

  • Loading branch information...
commit 252911e37897e1fd6f353f8e2002de3031275612 1 parent 6268fcd
Carl Lerche authored
View
9 railties/lib/rails/generators.rb
@@ -52,8 +52,8 @@ module Generators
: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 Generators
:template_engine => :erb
},
- :test_unit => {
- :fixture => true,
- :fixture_replacement => nil
- },
-
:plugin => {
:generator => false,
:tasks => false
View
8 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"
Please sign in to comment.
Something went wrong with that request. Please try again.