1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Update comments for minitest

This commit is contained in:
Nobuyoshi Nakada 2021-09-11 17:37:49 +09:00
parent cd83e716d0
commit 952806cdec
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
2 changed files with 7 additions and 15 deletions

View file

@ -46,11 +46,6 @@ module Test
##
# Test::Unit is an implementation of the xUnit testing framework for Ruby.
#
# If you are writing new test code, please use MiniTest instead of Test::Unit.
#
# Test::Unit has been left in the standard library to support legacy test
# suites.
module Unit
##
# Assertion base class
@ -1518,9 +1513,6 @@ module Test
# Overriding of Test::Unit::Runner#puke
def puke klass, meth, e
# TODO:
# this overriding is for minitest feature that skip messages are
# hidden when not verbose (-v), note this is temporally.
n = report.size
e = case e
when Test::Unit::PendedError then

View file

@ -76,7 +76,7 @@ module Test
module LifecycleHooks
##
# Runs before every test, after setup. This hook is meant for
# libraries to extend minitest. It is not meant to be used by
# libraries to extend Test::Unit. It is not meant to be used by
# test developers.
#
# See #before_setup for an example.
@ -85,12 +85,12 @@ module Test
##
# Runs before every test, before setup. This hook is meant for
# libraries to extend minitest. It is not meant to be used by
# libraries to extend Test::Unit. It is not meant to be used by
# test developers.
#
# As a simplistic example:
#
# module MyMinitestPlugin
# module MyTestUnitPlugin
# def before_setup
# super
# # ... stuff to do before setup is run
@ -113,14 +113,14 @@ module Test
# end
#
# class Test::Unit::Runner::TestCase
# include MyMinitestPlugin
# include MyTestUnitPlugin
# end
def before_setup; end
##
# Runs after every test, before teardown. This hook is meant for
# libraries to extend minitest. It is not meant to be used by
# libraries to extend Test::Unit. It is not meant to be used by
# test developers.
#
# See #before_setup for an example.
@ -129,7 +129,7 @@ module Test
##
# Runs after every test, after teardown. This hook is meant for
# libraries to extend minitest. It is not meant to be used by
# libraries to extend Test::Unit. It is not meant to be used by
# test developers.
#
# See #before_setup for an example.
@ -141,7 +141,7 @@ module Test
# Subclass TestCase to create your own tests. Typically you'll want a
# TestCase subclass per implementation class.
#
# See MiniTest::Unit::AssertionFailedErrors
# See <code>Test::Unit::AssertionFailedError</code>s
class TestCase
include Assertions