module ActiveSupport::Testing::Deprecation
def assert_not_deprecated(&block)
def assert_not_deprecated(&block) result, deprecations = collect_deprecations(&block) assert deprecations.empty?, "Expected no deprecation warning within the block but received #{deprecations.size}: \n #{deprecations * "\n "}" result end