-
Notifications
You must be signed in to change notification settings - Fork 339
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #613 from ruby/update-test-layout
Move test directory to test/json same as layout of other default gems
- Loading branch information
Showing
49 changed files
with
25 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
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 | ||
|
||
unless defined?(Test::Unit::CoreAssertions) | ||
require "core_assertions" | ||
Test::Unit::TestCase.include Test::Unit::CoreAssertions | ||
end |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.