aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems')
-rw-r--r--lib/rubygems/test_case.rb11
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/rubygems/test_case.rb b/lib/rubygems/test_case.rb
index a116b6c93c..306edcc3f6 100644
--- a/lib/rubygems/test_case.rb
+++ b/lib/rubygems/test_case.rb
@@ -21,16 +21,7 @@ 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'
- begin
- gem 'json'
- rescue Gem::LoadError
- # for Ruby 2.3.0
- end
-end
-
-begin
- require 'json'
-rescue LoadError
+ gem 'json'
end
require 'minitest/autorun'