Sha256: 2c4966f0cf61b11d2311988015be1e8882f89e29a7501044ccf6651ae1e009d2
Contents?: true
Size: 655 Bytes
Versions: 8
Compression:
Stored size: 655 Bytes
Contents
# frozen_string_literal: true module Minitest extend self def plugin_deprecation_toolkit_options(opts, options) opts.on("-r", "--record-deprecations", "Record deprecations") do options[:record_deprecations] = true end end def plugin_deprecation_toolkit_init(options) return unless using_bundler? require "deprecation_toolkit" if options[:record_deprecations] DeprecationToolkit::Configuration.behavior = DeprecationToolkit::Behaviors::Record end DeprecationToolkit.add_notify_behavior DeprecationToolkit.attach_subscriber end private def using_bundler? ENV["BUNDLE_GEMFILE"] end end
Version data entries
8 entries across 8 versions & 1 rubygems