Skip to content

Commit

Permalink
Merge pull request #431 from mame/avoid-relative-path-in-load-path
Browse files Browse the repository at this point in the history
Do not add a relative path to $LOAD_PATH
  • Loading branch information
hsbt authored Jul 3, 2020
2 parents 380699d + 6076780 commit b6e6a4c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_helper.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
case ENV['JSON']
when 'pure'
$:.unshift 'lib'
$:.unshift File.join(__dir__, '../lib')
require 'json/pure'
when 'ext'
$:.unshift 'ext', 'lib'
$:.unshift File.join(__dir__, '../ext'), File.join(__dir__, '../lib')
require 'json/ext'
else
$:.unshift 'ext', 'lib'
$:.unshift File.join(__dir__, '../ext'), File.join(__dir__, '../lib')
require 'json'
end

Expand Down

0 comments on commit b6e6a4c

Please sign in to comment.