7
8
9
10
11
12
13
14
15
16
17
18
|
# File 'lib/super_diff/rspec/object_inspection.rb', line 7
def self.const_missing(missing_const_name)
if RSpec::InspectionTreeBuilders.const_defined?(missing_const_name)
warn <<~WARNING
WARNING: SuperDiff::RSpec::ObjectInspection::InspectionTreeBuilders::#{missing_const_name} is deprecated and will be removed in the next major release.
Please use SuperDiff::RSpec::InspectionTreeBuilders::#{missing_const_name} instead.
#{caller_locations.join("\n")}
WARNING
RSpec::InspectionTreeBuilders.const_get(missing_const_name)
else
super
end
end
|