lib/active_support/testing/deprecation.rb in activesupport-6.1.7.10 vs lib/active_support/testing/deprecation.rb in activesupport-7.0.0.alpha1
- old
+ new
@@ -2,10 +2,10 @@
require "active_support/deprecation"
module ActiveSupport
module Testing
- module Deprecation #:nodoc:
+ module Deprecation # :nodoc:
def assert_deprecated(match = nil, deprecator = nil, &block)
result, warnings = collect_deprecations(deprecator, &block)
assert !warnings.empty?, "Expected a deprecation warning within the block but received none"
if match
match = Regexp.new(Regexp.escape(match)) unless match.is_a?(Regexp)