diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-24 23:05:28 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-24 23:05:28 +0000 |
commit | 7222e82a8b98afdc61b9cf6ad7419068429a42e9 (patch) | |
tree | 9601822113feef70fe4f6fc19b5453dd378dcd62 /test/rdoc/test_rdoc_info_formatting.rb | |
parent | da6300e8f888d0664347a5f2fb43dc749df7b5ad (diff) | |
download | ruby-7222e82a8b98afdc61b9cf6ad7419068429a42e9.tar.gz |
Import RDoc 2.2.2 r192
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rdoc/test_rdoc_info_formatting.rb')
-rw-r--r-- | test/rdoc/test_rdoc_info_formatting.rb | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/test/rdoc/test_rdoc_info_formatting.rb b/test/rdoc/test_rdoc_info_formatting.rb index c0a9600989..87147fb7cb 100644 --- a/test/rdoc/test_rdoc_info_formatting.rb +++ b/test/rdoc/test_rdoc_info_formatting.rb @@ -1,11 +1,12 @@ require 'fileutils' require 'tmpdir' -require 'test/unit' +require 'rubygems' +require 'minitest/unit' require 'rdoc/generator/texinfo' # From chapter 18 of the Pickaxe 3rd ed. and the TexInfo manual. -class TestRDocInfoFormatting < Test::Unit::TestCase +class TestRDocInfoFormatting < MiniTest::Unit::TestCase def setup @output_dir = File.join Dir.tmpdir, "test_rdoc_info_formatting_#{$$}" @output_file = File.join @output_dir, 'rdoc.texinfo' @@ -19,12 +20,13 @@ class TestRDocInfoFormatting < Test::Unit::TestCase end def teardown - FileUtils.rm_rf @output_dir + # FileUtils.rm_rf @output_dir end # Make sure tags like *this* do not make HTML def test_descriptions_are_not_html - assert_no_match Regexp.new("\<b\>this\<\/b\>"), @text, "We had some HTML; icky!" + refute_match Regexp.new("\<b\>this\<\/b\>"), @text, + "We had some HTML; icky!" end # Ensure we get a reasonable amount @@ -173,3 +175,5 @@ Second outer item. assert string[regex] #, message end end + +MiniTest::Unit.autorun |