Method: RSpec::Core::MultipleExceptionError#exception_count_description

Defined in:
lib/rspec/core/formatters/exception_presenter.rb

#exception_count_descriptionvoid

return [String] A description of the failure/error counts.

[View source] [View on GitHub]

549
550
551
552
553
554
# File 'lib/rspec/core/formatters/exception_presenter.rb', line 549

def exception_count_description
  failure_count = Formatters::Helpers.pluralize(failures.size, "failure")
  return failure_count if other_errors.empty?
  error_count = Formatters::Helpers.pluralize(other_errors.size, "other error")
  "#{failure_count} and #{error_count}"
end