Skip related tests with Gem::RDoc

This commit is contained in:
Hiroshi SHIBATA 2025-01-15 12:36:50 +09:00
parent c6923278d8
commit 2bfa49f288
Notes: git 2025-01-15 07:53:18 +00:00
2 changed files with 3 additions and 3 deletions

View File

@ -665,7 +665,7 @@ ERROR: Possible alternatives: non_existent_with_hint
assert_path_exist File.join(a2.doc_dir, "ri")
assert_path_exist File.join(a2.doc_dir, "rdoc")
end unless Gem.rdoc_hooks_defined_via_plugin?
end if defined?(Gem::RDoc) && !Gem.rdoc_hooks_defined_via_plugin?
def test_execute_rdoc_with_path
specs = spec_fetcher do |fetcher|
@ -701,7 +701,7 @@ ERROR: Possible alternatives: non_existent_with_hint
wait_for_child_process_to_exit
assert_path_exist "whatever/doc/a-2", "documentation not installed"
end unless Gem.rdoc_hooks_defined_via_plugin?
end if defined?(Gem::RDoc) && !Gem.rdoc_hooks_defined_via_plugin?
def test_execute_saves_build_args
specs = spec_fetcher do |fetcher|

View File

@ -506,7 +506,7 @@ class TestGemCommandsUpdateCommand < Gem::TestCase
a2 = @specs["a-2"]
assert_path_exist File.join(a2.doc_dir, "rdoc")
end unless Gem.rdoc_hooks_defined_via_plugin?
end if defined?(Gem::RDoc) && !Gem.rdoc_hooks_defined_via_plugin?
def test_execute_named
spec_fetcher do |fetcher|