test/ruby/test_enumerator.rb: check the deprecation warning
by explicitly setting Warning[:deprecated] = true. I removed "capture_io" at 79063d8cbfb7ce4740774289252a2a20dc9a5dc1, but it printed the warning when RUBYOPT=-w.
This change makes the warnings enabled explicitly, capture and check the warning.
test/ruby/test_enumerator.rb: check the deprecation warning
by explicitly setting
Warning[:deprecated] = true
.I removed "capture_io" at 79063d8cbfb7ce4740774289252a2a20dc9a5dc1, but
it printed the warning when
RUBYOPT=-w
.This change makes the warnings enabled explicitly, capture and check the
warning.