Sha256: 556420086bcfcd5e94fa641b8a6a8373442afc6c1b3acd5fa68d6a44cd126a40
Contents?: true
Size: 610 Bytes
Versions: 8
Compression:
Stored size: 610 Bytes
Contents
# frozen_string_literal: true require "minitest" module DeprecationToolkit module Minitest def trigger_deprecation_toolkit_behavior current_deprecations = Collector.new(Collector.deprecations) recorded_deprecations = Collector.load(self) if current_deprecations != recorded_deprecations Configuration.behavior.trigger(self, current_deprecations, recorded_deprecations) end ensure Collector.reset! end end end module Minitest class Test include DeprecationToolkit::Minitest TEARDOWN_METHODS << "trigger_deprecation_toolkit_behavior" end end
Version data entries
8 entries across 8 versions & 1 rubygems