summaryrefslogtreecommitdiff
path: root/tests/test_helper.rb
blob: 9d3665d47a69ea5f38050b1229f289fdad867523 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
gem 'json', File.read('VERSION').chomp

case ENV['JSON']
when 'pure'
  $:.unshift 'lib'
  require 'json/pure'
when 'ext'
  $:.unshift 'ext', 'lib'
  require 'json/ext'
else
  $:.unshift 'ext', 'lib'
  require 'json'
end

require 'test/unit'
begin
  require 'byebug'
rescue LoadError
end
if ENV['START_SIMPLECOV'].to_i == 1
  require 'simplecov'
  SimpleCov.start
end