class RSpecJUnitFormatter
def failure_for(example)
def failure_for(example) exception = exception_for(example) 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 "#{exception.message}\n#{backtrace.join("\n")}" end