2021-06-01 12:20:20 +00:00
|
|
|
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
|
|
|
|
|
2019-07-26 14:33:26 +00:00
|
|
|
require 'deprecation_toolkit/rspec'
|
|
|
|
|
|
|
|
DeprecationToolkit::Configuration.test_runner = :rspec
|
2021-07-06 07:52:22 +00:00
|
|
|
|
|
|
|
# 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.first.absolute_path.to_s
|
|
|
|
path.include?('/ruby/') || path.include?('/gems/')
|
|
|
|
end
|
|
|
|
]
|