From baa8c5ad0fb3f860388eeec4421ccb8afa0096a8 Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Thu, 22 Dec 2016 11:01:15 +0900 Subject: 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 ``` --- railties/test/application/generators_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties') 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 -- cgit v1.2.3