Module: DeprecationToolkit::Behaviors::Record

Extended by:
Record, ReadWriteHelper
Included in:
Record
Defined in:
lib/deprecation_toolkit/behaviors/record.rb

Instance Method Summary collapse

Methods included from ReadWriteHelper

read, write

Instance Method Details

#trigger(test, collector, _) ⇒ Object



9
10
11
12
13
# File 'lib/deprecation_toolkit/behaviors/record.rb', line 9

def trigger(test, collector, _)
  deprecation_file = recorded_deprecations_path(test)

  write(deprecation_file, test_name(test) => collector.deprecations_without_stacktrace)
end