Skip to content

Commit 49de571

Browse files
committed
Cleanup test_helper.rb
1 parent 5dafd3e commit 49de571

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/json/test_helper.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
case ENV['JSON']
22
when 'pure'
3-
$:.unshift File.join(__dir__, '../../lib')
3+
$LOAD_PATH.unshift(File.expand_path('../../../lib', __FILE__))
44
require 'json/pure'
55
when 'ext'
6-
$:.unshift File.join(__dir__, '../../ext'), File.join(__dir__, '../../lib')
6+
$LOAD_PATH.unshift(File.expand_path('../../../ext', __FILE__), File.expand_path('../../../lib', __FILE__))
77
require 'json/ext'
88
else
9-
$:.unshift File.join(__dir__, '../../ext'), File.join(__dir__, '../../lib')
9+
$LOAD_PATH.unshift(File.expand_path('../../../ext', __FILE__), File.expand_path('../../../lib', __FILE__))
1010
require 'json'
1111
end
1212

0 commit comments

Comments
 (0)