lib/rspec_extensions/formatters/suite_formatter.rb
def failed_example_output example
        full_description = example.full_description
        location = example.location
        formatted_message = strip_message_from_whitespace(example.execution_result.exception.message)

        "#{full_description} - #{location} \n  #{formatted_message}"
      end
# Extracts the full_description, location and formats the message of each example exception
Extracts the full_description, location and formats the message of each example exception
Extracts the full_description location and formats the message of each example exception
def failed_example_output example
        full_description = example.full_description
        location = example.location
        formatted_message = strip_message_from_whitespace(example.execution_result.exception.message)
        "#{full_description} - #{location} \n  #{formatted_message}"
      end
def failed_example_output example full_description = example . full_description location = example . location formatted_message = strip_message_from_whitespace ( example . execution_result . exception . message ) "#{full_description} - #{location} \n  #{formatted_message}" end
Extracts the full_description, location and formats the message of each example exception
Extracts the full_description location and formats the message of each example exception
example