summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJean Boussier <[email protected]>2024-10-25 12:36:53 +0200
committerHiroshi SHIBATA <[email protected]>2024-10-26 18:44:15 +0900
commit3daf16e51fcd21e964525d7e64cec646a49236ff (patch)
tree4f24c684567c2650976f019ed723e063fae0bc7b /test
parent73142755480e6a5e2d6307805dcc5d0dde02abbc (diff)
[ruby/json] Cleanup test_helper.rb
https://github.com/ruby/json/commit/49de571dd8
Diffstat (limited to 'test')
-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 4955a02c9d..e8bba16f84 100644
--- a/test/json/test_helper.rb
+++ b/test/json/test_helper.rb
@@ -1,12 +1,12 @@
case ENV['JSON']
when 'pure'
- $:.unshift File.join(__dir__, '../../lib')
+ $LOAD_PATH.unshift(File.expand_path('../../../lib', __FILE__))
require 'json/pure'
when 'ext'
- $:.unshift File.join(__dir__, '../../ext'), File.join(__dir__, '../../lib')
+ $LOAD_PATH.unshift(File.expand_path('../../../ext', __FILE__), File.expand_path('../../../lib', __FILE__))
require 'json/ext'
else
- $:.unshift File.join(__dir__, '../../ext'), File.join(__dir__, '../../lib')
+ $LOAD_PATH.unshift(File.expand_path('../../../ext', __FILE__), File.expand_path('../../../lib', __FILE__))
require 'json'
end