Sha256: da9d2b323e63f532f8a1b6b5c14bd7f256fc6462a432ac3637d35a83fdb7ad71
Contents?: true
Size: 602 Bytes
Versions: 20
Compression:
Stored size: 602 Bytes
Contents
require "test/unit" module Test module Unit class Failure def long_display first, *others = location others.unshift("") unless others.empty? others = others.join("\n ") "Failure:\n#{@test_name}\n#{first}\n#{@message}#{others}" end end class Error def long_display backtrace = filter_backtrace(@exception.backtrace) first, *others = backtrace others.unshift("") unless others.empty? others = others.join("\n ") "Error:\n#{@test_name}:\n#{first}\n#{message}#{others}" end end end end
Version data entries
20 entries across 20 versions & 1 rubygems