123456789_123456789_123456789_123456789_123456789_

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

Do not use. This class is for internal use only.
Relationships & Source Files
Inherits: Object
Defined in: rspec-core/lib/rspec/core/formatters/deprecation_formatter.rb

Overview

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

Instance Method Summary

Instance Method Details

#puts(message)

Raises:

[ GitHub ]

  
# File 'rspec-core/lib/rspec/core/formatters/deprecation_formatter.rb', line 185

def puts(message)
  raise DeprecationError, message
end

#summarize(summary_stream, deprecation_count)

[ GitHub ]

  
# File 'rspec-core/lib/rspec/core/formatters/deprecation_formatter.rb', line 189

def summarize(summary_stream, deprecation_count)
  summary_stream.puts "\n#{Helpers.pluralize(deprecation_count, 'deprecation')} found."
end