module Minitest

def plugin_deprecation_toolkit_init(options)

def plugin_deprecation_toolkit_init(options)
  return unless using_bundler?
  require "deprecation_toolkit"
  setup_deprecation_toolkit(options)
end

def plugin_deprecation_toolkit_options(opts, options)

def plugin_deprecation_toolkit_options(opts, options)
  opts.on("-r", "--record-deprecations", "Record deprecations") do
    options[:record_deprecations] = true
  end
end

def setup_deprecation_toolkit(options)

def setup_deprecation_toolkit(options)
  if options[:record_deprecations]
    DeprecationToolkit::Configuration.behavior = DeprecationToolkit::Behaviors::Record
  end
  DeprecationToolkit.add_notify_behavior
  DeprecationToolkit.attach_subscriber
end

def using_bundler?

def using_bundler?
  ENV["BUNDLE_GEMFILE"]
end