From b5bb9819596f2cf30950d1634f022bba3d466fcc Mon Sep 17 00:00:00 2001 From: KOBAYASHI Shuji Date: Tue, 5 Nov 2019 19:45:04 +0900 Subject: Remove test that depend on `mruby-enumerator` from `mruby-array-ext` `Object.const_defined?(:Enumerator)` is always false because `mruby-enumerator` is not specified in `test_dependency`. I don't think this test is necessary. --- mrbgems/mruby-array-ext/test/array.rb | 6 ------ 1 file changed, 6 deletions(-) (limited to 'mrbgems/mruby-array-ext/test') diff --git a/mrbgems/mruby-array-ext/test/array.rb b/mrbgems/mruby-array-ext/test/array.rb index cb76559c7..51172f9a8 100644 --- a/mrbgems/mruby-array-ext/test/array.rb +++ b/mrbgems/mruby-array-ext/test/array.rb @@ -195,12 +195,6 @@ assert("Array#reverse_each") do b << i end assert_equal [ "d", "c", "b", "a" ], b - - if Object.const_defined?(:Enumerator) - assert_equal [ "d", "c", "b", "a" ], a.reverse_each.to_a - else - true - end end assert("Array#rotate") do -- cgit v1.2.3