From c043eca2b20539c7be58e3d7fd60d6488dd55287 Mon Sep 17 00:00:00 2001 From: Lucas Mazza Date: Thu, 18 Sep 2014 18:24:26 -0300 Subject: [PATCH] Silence controller generator warning output --- test/generators/controllers_generator_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/generators/controllers_generator_test.rb b/test/generators/controllers_generator_test.rb index 11d1c35d..6df0f0c2 100644 --- a/test/generators/controllers_generator_test.rb +++ b/test/generators/controllers_generator_test.rb @@ -6,7 +6,7 @@ class ControllersGeneratorTest < Rails::Generators::TestCase setup :prepare_destination test "Assert no controllers are created with no params" do - run_generator + capture(:stderr) { run_generator } assert_no_file "app/controllers/sessions_controller.rb" assert_no_file "app/controllers/registrations_controller.rb" assert_no_file "app/controllers/confirmations_controller.rb"