1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/json/test_helper.rb

18 lines
362 B
Ruby
Raw Normal View History

case ENV['JSON']
when 'pure'
$:.unshift File.join(__dir__, '../lib')
require 'json/pure'
when 'ext'
$:.unshift File.join(__dir__, '../ext'), File.join(__dir__, '../lib')
require 'json/ext'
else
$:.unshift File.join(__dir__, '../ext'), File.join(__dir__, '../lib')
require 'json'
end
require 'test/unit'
begin
require 'byebug'
rescue LoadError
end