1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eregon 2017-05-14 14:09:29 +00:00
parent e3d4de3512
commit 6dd3ff482f
8 changed files with 255 additions and 7 deletions

View file

@ -10,3 +10,4 @@ require 'mspec/helpers/numeric'
require 'mspec/helpers/ruby_exe'
require 'mspec/helpers/scratch'
require 'mspec/helpers/tmp'
require 'mspec/helpers/warning'

View file

@ -0,0 +1,9 @@
class Object
def suppress_warning
verbose = $VERBOSE
$VERBOSE = nil
yield
ensure
$VERBOSE = verbose
end
end

View file

@ -8,7 +8,7 @@ class UnitdiffFormatter < DottedFormatter
@exceptions.each do |exc|
outcome = exc.failure? ? "FAILED" : "ERROR"
print "\n#{count += 1})\n#{exc.description} #{outcome}\n"
print exc.message, ": \n"
print exc.message, ":\n"
print exc.backtrace, "\n"
end
print "\n#{@tally.format}\n"