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"