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.

[View source]

534
535
536
# File 'lib/rspec/core/formatters/exception_presenter.rb', line 534

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