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

test/rdoc/test_rdoc_rubygems_hook.rb: suppress deprecation warning

This commit is contained in:
Yusuke Endoh 2019-07-31 11:45:28 +09:00
parent 823adea954
commit 1d02832bcf

View file

@ -131,8 +131,10 @@ class TestRDocRubygemsHook < Gem::TestCase
end
def test_generate_default_gem
@a.loaded_from =
File.join Gem::Specification.default_specifications_dir, 'a.gemspec'
Gem::Deprecate.skip_during do
@a.loaded_from =
File.join Gem::Specification.default_specifications_dir, 'a.gemspec'
end
@hook.generate