From f6474127896c7d0e812f9f0e6b6cd2aadaf682dd Mon Sep 17 00:00:00 2001 From: Annie Li Date: Wed, 24 Aug 2022 10:56:47 -0700 Subject: [PATCH] Add comment and change to starts_with --- test/test_helper.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/test_helper.rb b/test/test_helper.rb index 55650ede9..555105f7d 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,6 +1,9 @@ # frozen_string_literal: true -if RUBY_VERSION >= "3.1" +# Report test coverage to coveralls for only one Ruby version to avoid +# repeated builds. This also accounts for coveralls_reborn requiring +# RUBY_VERSION >= 2.5. +if RUBY_VERSION.start_with?("3.1") require "coveralls" Coveralls.wear! end