Silence the logger during tests


I have some tests that generate a lot of NOTICE messages from the logger
and I’d like to silence them for certain sections of the tests.

I’ve tried using…

but that seems to have no effect at all.

Can somebody tell me how I can go about silencing the messages that
appear during the tests?


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs