1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[rubygems/rubygems] Silence deprecations when gemdeps is used in tests

Because we can't control 3rd party gems using deprecated rubygems
behavior, and thus outputting warnings to the screen.

https://github.com/rubygems/rubygems/commit/6912ebf20a
This commit is contained in:
David Rodríguez 2019-06-20 13:10:06 +02:00 committed by Hiroshi SHIBATA
parent 05ae2c11fa
commit 0ca494fc80
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -1788,8 +1788,10 @@ You may need to `gem install -g` to install missing gems
EXPECTED
assert_output nil, expected do
Gem.use_gemdeps
Gem::Deprecate.skip_during do
assert_output nil, expected do
Gem.use_gemdeps
end
end
ensure
ENV['RUBYGEMS_GEMDEPS'] = rubygems_gemdeps