提交 252911e3 编写于 作者: C Carl Lerche

Cleanup the test_unit generator move into the railtie

上级 6268fcdc
...@@ -52,8 +52,8 @@ module Generators ...@@ -52,8 +52,8 @@ module Generators
:helper => true, :helper => true,
:layout => true, :layout => true,
:orm => :active_record, :orm => :active_record,
:integration_tool => :test_unit, :integration_tool => nil,
:performance_tool => :test_unit, :performance_tool => nil,
:resource_controller => :controller, :resource_controller => :controller,
:scaffold_controller => :scaffold_controller, :scaffold_controller => :scaffold_controller,
:singleton => false, :singleton => false,
...@@ -62,11 +62,6 @@ module Generators ...@@ -62,11 +62,6 @@ module Generators
:template_engine => :erb :template_engine => :erb
}, },
:test_unit => {
:fixture => true,
:fixture_replacement => nil
},
:plugin => { :plugin => {
:generator => false, :generator => false,
:tasks => false :tasks => false
......
...@@ -2,7 +2,13 @@ module Rails ...@@ -2,7 +2,13 @@ module Rails
class TestUnitRailtie < Rails::Railtie class TestUnitRailtie < Rails::Railtie
railtie_name :test_unit 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 rake_tasks do
load "rails/tasks/testing.rake" load "rails/tasks/testing.rake"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册