diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2024-02-21 15:45:53 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2024-02-21 15:45:53 +0900 |
commit | 1fa4d15ca732f64616161739a50f57c287e17402 (patch) | |
tree | 1cd2c490dd0a85dd2c83ea33cad7a77c3b7bce87 /tool/lib/test/unit/testcase.rb | |
parent | fc1a7a46dc9814d8600d4b22f5929cbc8248cab0 (diff) |
Add `Test::Unit::TestCase#method_name`
For the compatibility with test-unit gem.
Diffstat (limited to 'tool/lib/test/unit/testcase.rb')
-rw-r--r-- | tool/lib/test/unit/testcase.rb | 3 |
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: |