about summary refs log tree commit homepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/helper.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/helper.rb b/test/helper.rb
index a841f20..27adade 100644
--- a/test/helper.rb
+++ b/test/helper.rb
@@ -36,6 +36,12 @@ if ENV["COVERAGE"]
         # filter out stuff that's not in our project
         COVMATCH =~ filename or next
 
+        # For compatibility with https://bugs.ruby-lang.org/issues/9508
+        # TODO: support those features if that gets merged into mainline
+        unless Array === counts
+          counts = counts[:lines]
+        end
+
         merge = prev[filename] || []
         merge = merge
         counts.each_with_index do |count, i|