Silencing Ruby warnings in Rails tests

I’d like to get rid of Ruby warnings in my Rails tests. Is there a way
to do
this without wrapping all methods in silence_warnings { }.

Thanks

Hammed