mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rubygems/test_case.rb: fixed json load error for rubygems tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2abf47bff9
commit
1cb2131153
2 changed files with 8 additions and 6 deletions
|
@ -1,3 +1,7 @@
|
|||
Sun Apr 12 14:53:23 2015 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
||||
|
||||
* lib/rubygems/test_case.rb: fixed json load error for rubygems tests.
|
||||
|
||||
Sun Apr 12 14:13:28 2015 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
||||
|
||||
* gc.c: Document require name for ObjectSpace methods.
|
||||
|
|
|
@ -21,12 +21,10 @@ end
|
|||
# them while we're testing rubygems, and thus we can't actually load them.
|
||||
unless Gem::Dependency.new('rdoc', '>= 3.10').matching_specs.empty?
|
||||
gem 'rdoc'
|
||||
gem 'json'
|
||||
end
|
||||
|
||||
begin
|
||||
require 'json'
|
||||
rescue LoadError
|
||||
begin
|
||||
gem 'json'
|
||||
rescue LoadError
|
||||
end
|
||||
end
|
||||
|
||||
require 'minitest/autorun'
|
||||
|
|
Loading…
Add table
Reference in a new issue