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

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

Overview

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

Instance Method Summary collapse

Instance Method Details

#puts(message) ⇒ Object

Raises:



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

def puts(message)
  raise DeprecationError, message
end

#summarize(summary_stream, deprecation_count) ⇒ Object



189
190
191
# File '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