diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-27 13:41:04 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-27 13:41:04 +0000 |
| commit | da44ec2a5b38242177dae083209c2f9d784e5c49 (patch) | |
| tree | eee59bdf36da0a5182e13baff1c5143ef74e025b /test/rdoc | |
| parent | a0a26f6fdfa5ccf2de124248a3e36b7623c5605d (diff) | |
| download | ruby-da44ec2a5b38242177dae083209c2f9d784e5c49.tar.gz ruby-da44ec2a5b38242177dae083209c2f9d784e5c49.tar.xz ruby-da44ec2a5b38242177dae083209c2f9d784e5c49.zip | |
* test/rdoc/test_rdoc_info_formatting.rb (setup, teadown): uses
mktmpdir and removes it alfter the test.
* test/cgi/test_cgi_session.rb (setup, teadown): ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rdoc')
| -rw-r--r-- | test/rdoc/test_rdoc_info_formatting.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/rdoc/test_rdoc_info_formatting.rb b/test/rdoc/test_rdoc_info_formatting.rb index 87147fb7c..c10532aa1 100644 --- a/test/rdoc/test_rdoc_info_formatting.rb +++ b/test/rdoc/test_rdoc_info_formatting.rb @@ -8,7 +8,7 @@ require 'rdoc/generator/texinfo' # From chapter 18 of the Pickaxe 3rd ed. and the TexInfo manual. class TestRDocInfoFormatting < MiniTest::Unit::TestCase def setup - @output_dir = File.join Dir.tmpdir, "test_rdoc_info_formatting_#{$$}" + @output_dir = File.join Dir.mktmpdir("test_rdoc_"), "info_formatting" @output_file = File.join @output_dir, 'rdoc.texinfo' RDoc::RDoc.new.document(['--fmt=texinfo', '--quiet', @@ -20,7 +20,7 @@ class TestRDocInfoFormatting < MiniTest::Unit::TestCase end def teardown - # FileUtils.rm_rf @output_dir + FileUtils.rm_rf File.dirname(@output_dir) end # Make sure tags like *this* do not make HTML |
