From 88e5c4a5829f1ae7a04ef8a6124f6d6b3705b657 Mon Sep 17 00:00:00 2001 From: aycabta Date: Sat, 6 Jan 2018 01:32:57 +0900 Subject: [PATCH] Fix separated tests This commit fixes commands below: ruby -Ilib:test test/test_rdoc_generator_darkfish.rb ruby -Ilib:test test/test_rdoc_text.rb --- test/test_rdoc_generator_darkfish.rb | 2 +- test/test_rdoc_text.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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