You are writing a test. It raises a well-known exception, and you check for it. Suddenly, there’s log output, since you are working with some concurrent task. Your mood sinks. What’s the way to disable this library’s logging? In this case, I was kindly helped by the library’s author. Quiet a Console.logger in an RSpec …
Continue reading “RSpec: Quiet a socketry/console logger in a test”