summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2019-07-31 11:45:28 +0900
committerYusuke Endoh <mame@ruby-lang.org>2019-07-31 11:46:56 +0900
commit1d02832bcff7ea45604da3a626b7983f9efe484d (patch)
tree70296a6d8ca0f96e771346c8a0f24296c3ef1194 /test
parent823adea954b7d197301867e70c1aae74e4d81eff (diff)
test/rdoc/test_rdoc_rubygems_hook.rb: suppress deprecation warning
Diffstat (limited to 'test')
-rw-r--r--test/rdoc/test_rdoc_rubygems_hook.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/rdoc/test_rdoc_rubygems_hook.rb b/test/rdoc/test_rdoc_rubygems_hook.rb
index ff0c29ae1b..b674aa6d48 100644
--- a/test/rdoc/test_rdoc_rubygems_hook.rb
+++ b/test/rdoc/test_rdoc_rubygems_hook.rb
@@ -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