diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rubygems/test_case.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/rubygems/test_case.rb b/lib/rubygems/test_case.rb index b1aabb658d..85a159f938 100644 --- a/lib/rubygems/test_case.rb +++ b/lib/rubygems/test_case.rb @@ -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' |