class RSpecJUnitFormatter
def failure_for(example)
def failure_for(example) exception = exception_for(example) message = strip_diff_colors(exception.message) backtrace = format_backtrace(exception.backtrace, example) if shared_group = find_shared_group(example) backtrace << "Shared Example Group: \"#{shared_group.metadata[:shared_group_name]}\" called from #{shared_group.metadata[:example_group][:location]}" end "#{message}\n#{backtrace.join("\n")}" end