提交 baa8c5ad 编写于 作者: Y yuuji.yaginuma

quiet generators log in test

This quiet the following log.

```
   create  app/mailers/notifier_mailer.rb
   invoke  erb
   create    app/views/notifier_mailer
identical    app/views/layouts/mailer.text.erb
identical    app/views/layouts/mailer.html.erb
   create    app/views/notifier_mailer/foo.text.erb
   create    app/views/notifier_mailer/foo.html.erb
   invoke  test_unit
   create    test/mailers/notifier_mailer_test.rb
   create    test/mailers/previews/notifier_mailer_preview.rb
```
上级 7336d0a2
......@@ -177,7 +177,7 @@ def with_bare_config
FileUtils.cd(rails_root) do
ARGV = ["mailer", "notifier", "foo"]
Rails::Command.const_set("ARGV", ARGV)
Rails::Command.invoke :generate, ARGV
quietly { Rails::Command.invoke :generate, ARGV }
assert_equal ["notifier", "foo"], ARGV
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册