From 1476ce141cf6154757188b5c19439641d487af87 Mon Sep 17 00:00:00 2001 From: Peter Vandenberk Date: Fri, 20 Dec 2024 09:07:58 +0000 Subject: [PATCH] only include lib in $LOAD_PATH if not included yet --- test/helper.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/helper.rb b/test/helper.rb index 8992caa05..537d7e3a2 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true -$:.unshift File.expand_path("../../lib", __FILE__) + +lib = File.expand_path("../../lib", __FILE__) +$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) begin if ENV["COVERALLS"]