diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-07-03 11:36:05 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-03 11:36:05 +0900 |
commit | b6e6a4c894c2dce2f92ab2f9752162189752d798 (patch) | |
tree | 17213ecfbf246a0527befbc85c42209b3590495b | |
parent | 380699de48bf697e9c9610858d4c897ebb4bd79f (diff) | |
parent | 607678068648e2922c3728b4e5e954ff5bb4a9ef (diff) | |
download | json-b6e6a4c894c2dce2f92ab2f9752162189752d798.tar.gz |
Merge pull request #431 from mame/avoid-relative-path-in-load-path
Do not add a relative path to $LOAD_PATH
-rw-r--r-- | tests/test_helper.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_helper.rb b/tests/test_helper.rb index c5ec0fc..446c020 100644 --- a/tests/test_helper.rb +++ b/tests/test_helper.rb @@ -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 |