diff --git a/test/test_helper.rb b/test/test_helper.rb index 35a4d68..cf08b01 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -73,3 +73,16 @@ def run_check(name) # Swallow everything to be able to test erroring checks. self.error_handler = ->(error, context) {} end + +module TestRunWarningFilter + # Had some trouble with spurious warnings output in mail v2.8.1 gem. Ignore that, to focus output. + def warn(message, category: nil, **kwargs) + if %r{gems/mail-.+/lib/}.match?(message) + # ignore + else + super + end + end +end +Warning.extend TestRunWarningFilter +