summaryrefslogtreecommitdiff
path: root/test/json
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2020-07-03 11:05:08 +0900
committerYusuke Endoh <mame@ruby-lang.org>2020-07-03 11:05:08 +0900
commite6a8590aa4216915ee15a7b231189254b03c22b1 (patch)
tree53cc85a08e5135df3df709238b9735f98cc1110d /test/json
parent59ded36c60b9420d1071679510acc07424b235f3 (diff)
Reintroduce c565dfb09ad7d55fa671f65cea7088a914bf1931
Diffstat (limited to 'test/json')
-rw-r--r--test/json/test_helper.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/json/test_helper.rb b/test/json/test_helper.rb
index c5ec0fc..446c020 100644
--- a/test/json/test_helper.rb
+++ b/test/json/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