Skip to content

Commit 58e1eac

Browse files
committed
only include lib in $LOAD_PATH if not included yet
1 parent 625e409 commit 58e1eac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/helper.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# frozen_string_literal: true
2-
$:.unshift File.expand_path("../../lib", __FILE__)
2+
3+
lib = File.expand_path("../../lib", __FILE__)
4+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
35

46
begin
57
if ENV["COVERALLS"]

0 commit comments

Comments
 (0)