Method: RSpec::Core::Configuration#raise_errors_for_deprecations!

Defined in:
lib/rspec/core/configuration.rb

#raise_errors_for_deprecations!void

Turns deprecation warnings into errors, in order to surface the full backtrace of the call site. This can be useful when you need more context to address a deprecation than the single-line call site normally provided.

Examples:


RSpec.configure do |rspec|
  rspec.raise_errors_for_deprecations!
end


1833
1834
1835
# File 'lib/rspec/core/configuration.rb', line 1833

def raise_errors_for_deprecations!
  self.deprecation_stream = Formatters::DeprecationFormatter::RaiseErrorStream.new
end