osem-fcy/spec/support/deprecation_shitlist.rb

12 lines
385 B
Ruby
Raw Normal View History

2021-08-17 12:34:26 +02:00
RSpec.configure do |config|
# Tracker deprecation messages in each file
2022-05-06 14:27:15 +02:00
if ENV.fetch('DEPRECATION_TRACKER', nil)
2021-08-17 12:34:26 +02:00
DeprecationTracker.track_rspec(
config,
shitlist_path: 'spec/support/deprecation_shitlist.json',
2022-05-06 14:27:15 +02:00
mode: ENV.fetch('DEPRECATION_TRACKER'),
2021-08-17 12:34:26 +02:00
transform_message: ->(message) { message.gsub("#{Rails.root}/", '') }
)
end
end