diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-08-31 14:58:31 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-09-25 09:50:33 +0900 |
commit | 996af2ce086249e904b2ce95ab2fcd1de7d757be (patch) | |
tree | 1b70f747a0eefc32be13f05bdb037275d1e664a1 /test/ruby/test_enumerator.rb | |
parent | 83ff0f74bf69650754cac020bcd4ff9adbba877e (diff) |
Disable deprecation warning by the default [Feature #16345]
And `-w` option turns it on.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3481
Diffstat (limited to 'test/ruby/test_enumerator.rb')
-rw-r--r-- | test/ruby/test_enumerator.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/test/ruby/test_enumerator.rb b/test/ruby/test_enumerator.rb index 75cf1aeec6..b619150571 100644 --- a/test/ruby/test_enumerator.rb +++ b/test/ruby/test_enumerator.rb @@ -72,7 +72,6 @@ class TestEnumerator < Test::Unit::TestCase _, err = capture_io do assert_equal([1, 2, 3], Enumerator.new(@obj, :foo, 1, 2, 3).to_a) end - assert_match 'Enumerator.new without a block is deprecated', err assert_equal([1, 2, 3], Enumerator.new { |y| i = 0; loop { y << (i += 1) } }.take(3)) assert_raise(ArgumentError) { Enumerator.new } |