osem-fcy/spec/support/deprecation_shitlist.rb

12 lines
368 B
Ruby
Raw Normal View History

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