Class: RSpec::Core::Formatters::DeprecationFormatter::RaiseErrorStream

Inherits:
Object
  • Object
show all
Includes:
Helpers
Defined in:
lib/rspec/core/formatters/deprecation_formatter.rb

Overview

Not really a stream, but is usable in place of one.

Constant Summary

Constant Summary

Constants included from Helpers

Helpers::DEFAULT_PRECISION, Helpers::SUB_SECOND_PRECISION

Instance Method Summary (collapse)

Methods included from Helpers

#format_duration, #format_seconds, #pluralize, #strip_trailing_zeroes

Methods included from BacktraceFormatter

#format_backtrace

Instance Method Details

- (Object) puts(message)

Raises:

186
187
188
# File 'lib/rspec/core/formatters/deprecation_formatter.rb', line 186
def puts(message)
  raise DeprecationError, message
end

- (Object) summarize(summary_stream, deprecation_count)

190
191
192
# File 'lib/rspec/core/formatters/deprecation_formatter.rb', line 190
def summarize(summary_stream, deprecation_count)
  summary_stream.puts "\n#{pluralize(deprecation_count, 'deprecation')} found."
end