diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2016-12-22 11:01:15 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2016-12-22 11:01:15 +0900 |
commit | baa8c5ad0fb3f860388eeec4421ccb8afa0096a8 (patch) | |
tree | 854014f93452978e4731438a6c64c78bdd06e64c /railties/test/application | |
parent | 7336d0a269dbee21f4d38c2f48e47302e81095aa (diff) | |
download | rails-baa8c5ad0fb3f860388eeec4421ccb8afa0096a8.tar.gz rails-baa8c5ad0fb3f860388eeec4421ccb8afa0096a8.tar.bz2 rails-baa8c5ad0fb3f860388eeec4421ccb8afa0096a8.zip |
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
```
Diffstat (limited to 'railties/test/application')
-rw-r--r-- | railties/test/application/generators_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/test/application/generators_test.rb b/railties/test/application/generators_test.rb index d75577c5f6..d2ce14f594 100644 --- a/railties/test/application/generators_test.rb +++ b/railties/test/application/generators_test.rb @@ -177,7 +177,7 @@ module ApplicationTests 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 |