summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-03-27 11:24:38 +0100
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-05-08 07:38:50 +0900
commit3256480317177a2cfd31cfa2c5ecf45dd8c1cc44 (patch)
treeb5e41d61b5bfa647532a7b92cee5e8040572a494 /lib
parent2396f703cf45e9fddb4f699b7866ea181c46c159 (diff)
[rubygems/rubygems] Don't swallow gem activation exception
Our tests are now guaranteed to not work on older versions of minitest, so I don't think we should swallow this activation error because it will make it very clear for the user what the problem is if she has a minitest version not satisfying the requirement. https://github.com/rubygems/rubygems/commit/a291b65369
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3087
Diffstat (limited to 'lib')
-rw-r--r--lib/rubygems/test_case.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/rubygems/test_case.rb b/lib/rubygems/test_case.rb
index b5c377f43a..1a2746d855 100644
--- a/lib/rubygems/test_case.rb
+++ b/lib/rubygems/test_case.rb
@@ -11,10 +11,7 @@ if File.exist?(bundler_gemspec)
Gem::Specification.dirs.shift
end
-begin
- gem 'minitest', '~> 5.13'
-rescue Gem::LoadError
-end
+gem 'minitest', '~> 5.13'
begin
require 'simplecov'