【发布时间】:2013-02-24 05:35:11
【问题描述】:
如何删除 test_unit 生成器以使它们从 rails generate 列表中消失?
我已经尝试了一些对我不起作用的方法:
config.generators do |g|
g.test_framework nil
end
使用-T 选项创建应用程序。
我的rails g 输出:
[a lot of other generators skipped]
TestUnit:
test_unit:controller
test_unit:helper
test_unit:integration
test_unit:mailer
test_unit:model
test_unit:plugin
test_unit:scaffold
【问题讨论】:
-
你能发布你的生成器输出吗?
-
已更新。没什么特别的,只是默认的 test_unit 生成器。
标签: ruby-on-rails ruby-on-rails-3 ruby-on-rails-3.2 generator