mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Add Test::Unit::TestCase#method_name
For the compatibility with test-unit gem.
This commit is contained in:
parent
fc1a7a46dc
commit
1fa4d15ca7
1 changed files with 3 additions and 0 deletions
|
@ -137,6 +137,9 @@ module Test
|
||||||
|
|
||||||
attr_reader :__name__ # :nodoc:
|
attr_reader :__name__ # :nodoc:
|
||||||
|
|
||||||
|
# Method name of this test.
|
||||||
|
alias method_name __name__
|
||||||
|
|
||||||
PASSTHROUGH_EXCEPTIONS = [NoMemoryError, SignalException,
|
PASSTHROUGH_EXCEPTIONS = [NoMemoryError, SignalException,
|
||||||
Interrupt, SystemExit] # :nodoc:
|
Interrupt, SystemExit] # :nodoc:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue