mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/mspec@4b980493
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e3d4de3512
commit
6dd3ff482f
8 changed files with 255 additions and 7 deletions
|
|
@ -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'
|
||||
|
|
|
|||
9
spec/mspec/lib/mspec/helpers/warning.rb
Normal file
9
spec/mspec/lib/mspec/helpers/warning.rb
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
class Object
|
||||
def suppress_warning
|
||||
verbose = $VERBOSE
|
||||
$VERBOSE = nil
|
||||
yield
|
||||
ensure
|
||||
$VERBOSE = verbose
|
||||
end
|
||||
end
|
||||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue