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]

544
545
546
547
548
549
# File 'lib/rspec/core/formatters/exception_presenter.rb', line 544

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