12345678910111213141516 |
- # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
- require 'deprecation_toolkit/rspec'
- DeprecationToolkit::Configuration.test_runner = :rspec
- # Treat Ruby deprecation warnings as errors.
- DeprecationToolkit::Configuration.warnings_treated_as_deprecation = [ %r{deprecat}i ]
- # Ignore deprecation warnings from dependencies.
- DeprecationToolkit::Configuration.allowed_deprecations = [
- lambda do |_message, stack|
- path = stack.reject { |s| s.absolute_path.nil? }.first.absolute_path.to_s
- path.include?('/ruby/') || path.include?('/gems/')
- end
- ]
|