summaryrefslogtreecommitdiff
path: root/tests/test_helper.rb
blob: 446c020e8fbf0314d6b0e2e1ec3b7884e9e58634 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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