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 7dde383..9d8c256 100644
--- a/test/helper.rb
+++ b/test/helper.rb
@@ -25,6 +25,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|