Skip to content

Commit 2927b6e

Browse files
committed
Separate off test of RDoc::RubygemsHook
RDoc uses test-unit but RubyGems uses minitest. RDoc::RubygemsHook is a part of RubyGems so its test also uses minitest. Rakefile of RDoc runs both tests at one time so always only RDoc::RubygemsHook's test runs. All other tests do never be run. So modified Rakefile to be run both tests separately.
1 parent 548d4d1 commit 2927b6e

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Rakefile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ require 'rake/testtask'
55
require 'rubocop/rake_task'
66

77
task :docs => :generate
8-
task :test => :generate
8+
task :test => [:normal_test, :rubygems_test, :generate]
99

1010
PARSER_FILES = %w[
1111
lib/rdoc/rd/block_parser.ry
@@ -34,10 +34,16 @@ task ghpages: :rdoc do
3434
FileUtils.cp_r Dir.glob("/tmp/html/*"), "."
3535
end
3636

37-
Rake::TestTask.new(:test) do |t|
37+
Rake::TestTask.new(:normal_test) do |t|
3838
t.libs << "test/rdoc"
3939
t.verbose = true
40-
t.test_files = FileList['test/**/test_*.rb']
40+
t.test_files = FileList["test/**/test_*.rb"].exclude("test/rdoc/test_rdoc_rubygems_hook.rb")
41+
end
42+
43+
Rake::TestTask.new(:rubygems_test) do |t|
44+
t.libs << "test/rdoc"
45+
t.verbose = true
46+
t.pattern = "test/rdoc/test_rdoc_rubygems_hook.rb"
4147
end
4248

4349
path = "pkg/#{Bundler::GemHelper.gemspec.full_name}"

0 commit comments

Comments
 (0)