summaryrefslogtreecommitdiff
path: root/tool/lib
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2024-02-21 15:45:53 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2024-02-21 15:45:53 +0900
commit1fa4d15ca732f64616161739a50f57c287e17402 (patch)
tree1cd2c490dd0a85dd2c83ea33cad7a77c3b7bce87 /tool/lib
parentfc1a7a46dc9814d8600d4b22f5929cbc8248cab0 (diff)
Add `Test::Unit::TestCase#method_name`
For the compatibility with test-unit gem.
Diffstat (limited to 'tool/lib')
-rw-r--r--tool/lib/test/unit/testcase.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/tool/lib/test/unit/testcase.rb b/tool/lib/test/unit/testcase.rb
index 7ed6c677e3..51ffff37eb 100644
--- a/tool/lib/test/unit/testcase.rb
+++ b/tool/lib/test/unit/testcase.rb
@@ -137,6 +137,9 @@ module Test
attr_reader :__name__ # :nodoc:
+ # Method name of this test.
+ alias method_name __name__
+
PASSTHROUGH_EXCEPTIONS = [NoMemoryError, SignalException,
Interrupt, SystemExit] # :nodoc: