7
8
9
10
11
12
13
14
15
16
17
|
# File 'lib/deprecation_toolkit/test_triggerer.rb', line 7
def trigger_deprecation_toolkit_behavior(test)
current_deprecations = DeprecationToolkit::Collector.new(DeprecationToolkit::Collector.deprecations)
recorded_deprecations = DeprecationToolkit::Collector.load(test)
if !recorded_deprecations.flaky? && current_deprecations != recorded_deprecations
DeprecationToolkit::Configuration.behavior.trigger(
test, current_deprecations, recorded_deprecations
)
end
ensure
DeprecationToolkit::Collector.reset!
end
|