Module: DeprecationToolkit::RSpecPlugin

Extended by:
RSpecPlugin
Included in:
RSpecPlugin
Defined in:
lib/deprecation_toolkit/rspec_plugin.rb

Instance Method Summary collapse

Instance Method Details

#before_suiteObject



13
14
15
16
17
18
19
20
21
# File 'lib/deprecation_toolkit/rspec_plugin.rb', line 13

def before_suite
  case ENV["DEPRECATION_BEHAVIOR"]
  when "r", "record", "record-deprecations"
    DeprecationToolkit::Configuration.behavior = DeprecationToolkit::Behaviors::Record
  end

  DeprecationToolkit.add_notify_behavior
  DeprecationToolkit.attach_subscriber
end