class RSpec::Core::Formatters::BaseTextFormatter

@see RSpec::Core::Reporter
@see RSpec::Core::Formatters::BaseFormatter
to learn more about all of the methods called by the reporter.
Base for all of RSpec’s built-in formatters. See RSpec::Core::Formatters::BaseFormatter

def close(_notification)

Parameters:
  • notification (NullNotification) --

Other tags:
    Api: - public
def close(_notification)
  return unless IO === output
  return if output.closed? || output == $stdout
  output.close
end

def dump_failures(notification)

Parameters:
  • notification (NullNotification) --

Other tags:
    Api: - public
def dump_failures(notification)
  return if notification.failure_notifications.empty?
  output.puts notification.fully_formatted_failed_examples
end

def dump_pending(notification)

Other tags:
    Private: -
def dump_pending(notification)
  return if notification.pending_examples.empty?
  output.puts notification.fully_formatted_pending_examples
end

def dump_summary(summary)

Parameters:
  • summary (SummaryNotification) -- containing duration, example_count,

Other tags:
    Api: - public
def dump_summary(summary)
  output.puts summary.fully_formatted
end

def message(notification)

Parameters:
  • notification (MessageNotification) -- containing message

Other tags:
    Api: - public
def message(notification)
  output.puts notification.message
end

def seed(notification)

Other tags:
    Private: -
def seed(notification)
  return unless notification.seed_used?
  output.puts notification.fully_formatted
end