summaryrefslogtreecommitdiff
path: root/test/json/test_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/json/test_helper.rb')
-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 446c020..c5ec0fc 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')
+ $:.unshift 'lib'
require 'json/pure'
when 'ext'
- $:.unshift File.join(__dir__, '../ext'), File.join(__dir__, '../lib')
+ $:.unshift 'ext', 'lib'
require 'json/ext'
else
- $:.unshift File.join(__dir__, '../ext'), File.join(__dir__, '../lib')
+ $:.unshift 'ext', 'lib'
require 'json'
end