summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-31 00:06:34 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-31 00:06:34 +0000
commitfb112a8c4debb4220eaa5a75fbb10afb39672b20 (patch)
tree21e9ca848f69c04392ead4949e8d662a8f70ca98 /lib
parenta9170f0dc1d2a4882022c48a47d1afb54fa4b12d (diff)
fix reset order.
* lib/rdoc/test_case.rb (setup): call `RDoc::Markup::PreProcess.reset` at the end of `setup` method. `RDoc::RDoc.new` requires `rdoc/generator/darkfish` and requires `rdoc/tom_doc.rb` at last. It add post_proecssor (at `add_post_processor`) and it fails `TestRDocMarkupPreProcess#test_class_post_process`. This issue occured only with sorted tests by alphabetical order. `make test-all TESTS='rdoc/test_rdoc_markup_pre_process.rb --test-order=alpha`) We can observe this failure with parallel test only a few times. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/rdoc/test_case.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rdoc/test_case.rb b/lib/rdoc/test_case.rb
index 22d3f14219..5f38870324 100644
--- a/lib/rdoc/test_case.rb
+++ b/lib/rdoc/test_case.rb
@@ -41,8 +41,6 @@ class RDoc::TestCase < MiniTest::Unit::TestCase
@RM = RDoc::Markup
- RDoc::Markup::PreProcess.reset
-
@pwd = Dir.pwd
@store = RDoc::Store.new
@@ -55,6 +53,8 @@ class RDoc::TestCase < MiniTest::Unit::TestCase
def g.class_dir() end
def g.file_dir() end
@rdoc.generator = g
+
+ RDoc::Markup::PreProcess.reset
end
##