Method: RSpec::Core::MultipleExceptionError#message

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

#messageString

Note:

RSpec does not actually use this -- instead it formats each exception individually.

Returns Combines all the exception messages into a single string.

Returns:

  • (String)

    Combines all the exception messages into a single string.


539
540
541
# File 'lib/rspec/core/formatters/exception_presenter.rb', line 539

def message
  all_exceptions.map(&:message).join("\n\n")
end