module DeprecationToolkit::ReadWriteHelper

def recorded_deprecations_path(test)

def recorded_deprecations_path(test)
  deprecation_folder = if Configuration.deprecation_path.is_a?(Proc)
    Configuration.deprecation_path.call(test_location(test))
  else
    Configuration.deprecation_path
  end
  path = Configuration.deprecation_file_path_format.call(test)
  Pathname(deprecation_folder).join("#{path}.yml")
end