diff --git a/test/test_rdoc_generator_darkfish.rb b/test/test_rdoc_generator_darkfish.rb index c004bb271e..3eeb5bf542 100644 --- a/test/test_rdoc_generator_darkfish.rb +++ b/test/test_rdoc_generator_darkfish.rb @@ -135,7 +135,7 @@ def test_generate_static_dry_run end def test_install_rdoc_static_file - src = Pathname(__FILE__) + src = Pathname File.expand_path(__FILE__, @pwd) dst = File.join @tmpdir, File.basename(src) options = {} diff --git a/test/test_rdoc_text.rb b/test/test_rdoc_text.rb index 9f0e9480d3..74214e6c86 100644 --- a/test/test_rdoc_text.rb +++ b/test/test_rdoc_text.rb @@ -1,6 +1,7 @@ # frozen_string_literal: true require 'rdoc/test_case' +require 'timeout' class TestRDocText < RDoc::TestCase