diff --git a/spec/mspec/lib/mspec/utils/warnings.rb b/spec/mspec/lib/mspec/utils/warnings.rb index c770d609f3..0d3d36fada 100644 --- a/spec/mspec/lib/mspec/utils/warnings.rb +++ b/spec/mspec/lib/mspec/utils/warnings.rb @@ -10,7 +10,7 @@ if Object.const_defined?(:Warning) and Warning.respond_to?(:[]=) end if Object.const_defined?(:Warning) and Warning.respond_to?(:warn) - def Warning.warn(message) + def Warning.warn(message, category: nil) # Suppress any warning inside the method to prevent recursion verbose = $VERBOSE $VERBOSE = nil