summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-09-11 17:37:49 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-09-11 17:37:49 +0900
commit952806cdecac2c275cf54392d3bf815ee746a063 (patch)
tree44624f8d33ba89a7b181df173e29b70082a90c7a
parentcd83e716d0efa2e060d366c910a2745c2bdb78e5 (diff)
Update comments for minitest
-rw-r--r--tool/lib/test/unit.rb8
-rw-r--r--tool/lib/test/unit/testcase.rb14
2 files changed, 7 insertions, 15 deletions
diff --git a/tool/lib/test/unit.rb b/tool/lib/test/unit.rb
index cb12024934..8fa3e72454 100644
--- a/tool/lib/test/unit.rb
+++ b/tool/lib/test/unit.rb
@@ -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
diff --git a/tool/lib/test/unit/testcase.rb b/tool/lib/test/unit/testcase.rb
index 6753d22bde..544628f128 100644
--- a/tool/lib/test/unit/testcase.rb
+++ b/tool/lib/test/unit/testcase.rb
@@ -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