Method: XSpec::Notifier::FailuresAtEnd#run_finish

Defined in:
lib/xspec/notifiers.rb

#run_finishObject



181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
# File 'lib/xspec/notifiers.rb', line 181

def run_finish
  return true if errors.empty?

  out.puts
  errors.each do |error|
    out.puts "%s - %s\n%s\n\n" % [
      short_id_for(error.unit_of_work),
      error.unit_of_work.full_name,
      error.message.lines.map {|x| "  #{x}"}.join("")
    ]
    clean_backtrace(error.caller).each do |line|
      out.puts "  %s" % line
    end
    out.puts
  end

  false
end