tests/helpers/collection_helper.rb in fog-aws-1.4.1 vs tests/helpers/collection_helper.rb in fog-aws-2.0.0
- old
+ new
@@ -37,15 +37,9 @@
'all?', 'any?', 'find', 'detect', 'collect', 'map',
'find_index', 'flat_map', 'collect_concat', 'group_by',
'none?', 'one?'
]
- # JRuby 1.7.5+ issue causes a SystemStackError: stack level too deep
- # https://github.com/jruby/jruby/issues/1265
- if RUBY_PLATFORM == "java" and JRUBY_VERSION =~ /1\.7\.[5-8]/
- methods.delete('all?')
- end
-
methods.each do |enum_method|
if collection.respond_to?(enum_method)
tests("##{enum_method}").succeeds do
block_called = false
collection.send(enum_method) {|x| block_called = true }