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:
parent
05ae2c11fa
commit
0ca494fc80
1 changed files with 4 additions and 2 deletions
|
@ -1788,9 +1788,11 @@ You may need to `gem install -g` to install missing gems
|
||||||
|
|
||||||
EXPECTED
|
EXPECTED
|
||||||
|
|
||||||
|
Gem::Deprecate.skip_during do
|
||||||
assert_output nil, expected do
|
assert_output nil, expected do
|
||||||
Gem.use_gemdeps
|
Gem.use_gemdeps
|
||||||
end
|
end
|
||||||
|
end
|
||||||
ensure
|
ensure
|
||||||
ENV['RUBYGEMS_GEMDEPS'] = rubygems_gemdeps
|
ENV['RUBYGEMS_GEMDEPS'] = rubygems_gemdeps
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue