Skip to content

Commit df25fb1

Browse files
authored
Merge pull request #610 from pvdb/fix_testhelper_require
refactor: only include `lib` in `$LOAD_PATH` if not included yet
2 parents ec12ac9 + 58e1eac commit df25fb1

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)