mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_{class,module}.rb (test_method_redefinition): refined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f5654b4dfc
commit
e6fb96e691
3 changed files with 71 additions and 20 deletions
|
@ -65,6 +65,19 @@ module EnvUtil
|
|||
stderr.close unless !stderr || stderr.closed?
|
||||
end
|
||||
module_function :rubyexec
|
||||
|
||||
|
||||
def verbose_warning
|
||||
class << (stderr = "")
|
||||
alias write <<
|
||||
end
|
||||
stderr, $stderr, verbose, $VERBOSE = $stderr, stderr, $VERBOSE, true
|
||||
yield stderr
|
||||
ensure
|
||||
stderr, $stderr, $VERBOSE = $stderr, stderr, verbose
|
||||
return stderr
|
||||
end
|
||||
module_function :verbose_warning
|
||||
end
|
||||
|
||||
module Test
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue