Skip to content

Commit

Permalink
Cleanup test_helper.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot committed Oct 25, 2024
1 parent 7a3b482 commit c2cd953
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/json/test_helper.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
case ENV['JSON']
when 'pure'
$:.unshift File.join(__dir__, '../../lib')
$LOAD_PATH.unshift(File.expand_path('../../../lib', __FILE__))
require 'json/pure'
when 'ext'
$:.unshift File.join(__dir__, '../../ext'), File.join(__dir__, '../../lib')
$LOAD_PATH.unshift(File.expand_path('../../../ext', __FILE__), File.expand_path('../../../lib', __FILE__))
require 'json/ext'
else
$:.unshift File.join(__dir__, '../../ext'), File.join(__dir__, '../../lib')
$LOAD_PATH.unshift(File.expand_path('../../../ext', __FILE__), File.expand_path('../../../lib', __FILE__))
require 'json'
end

Expand Down

0 comments on commit c2cd953

Please sign in to comment.