# File lib/turn/reporters/pretty_reporter.rb, line 62 def fail(assertion, message=nil) io.print pad_with_size("#{FAIL}") io.print " #{@test}" io.print " (%.2fs) " % (Time.now - @test_time) #message = assertion.location[0] + "\n" + assertion.message #.gsub("\n","\n") #trace = MiniTest::filter_backtrace(report[:exception].backtrace).first message ||= assertion.message _trace = if assertion.respond_to?(:backtrace) filter_backtrace(assertion.backtrace) else filter_backtrace(assertion.location).first end io.puts #io.puts pad(message, tabsize) io.puts message.tabto(TAB_SIZE) cnt = @trace ? @trace.to_i : _trace.size io.puts _trace[0, cnt].map{|l| l.tabto(TAB_SIZE) }.join("\n") #show_captured_output end