module Slacker::Formatter

Public Instance Methods

example_failure_text(notification) click to toggle source
# File lib/slacker/formatter.rb, line 5
def example_failure_text(notification)
  text = ''
  exception = notification.example.execution_result.exception
  text << notification.message_lines.join("\n").strip << "\n"
  text << notification.formatted_backtrace.join("\n")

  text
end