summaryrefslogtreecommitdiff
path: root/test/cgi/test_cgi_session.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-27 13:41:04 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-27 13:41:04 +0000
commit0c835afac0524cddd43e8a56da4efd9e45b17a83 (patch)
treeeee59bdf36da0a5182e13baff1c5143ef74e025b /test/cgi/test_cgi_session.rb
parentf0f281c1c16c9c34e59780e32c8e1136658594ef (diff)
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@21101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/cgi/test_cgi_session.rb')
-rw-r--r--test/cgi/test_cgi_session.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/cgi/test_cgi_session.rb b/test/cgi/test_cgi_session.rb
index 4fcb936d4e6..6cccb22240e 100644
--- a/test/cgi/test_cgi_session.rb
+++ b/test/cgi/test_cgi_session.rb
@@ -7,14 +7,14 @@ require 'tmpdir'
class CGISessionTest < Test::Unit::TestCase
def setup
- @session_dir = Dir.tmpdir+'/__test_dir__/session_dir/'
+ @session_dir = File.join(Dir.mktmpdir('__test_dir__'), 'session_dir')
FileUtils.mkdir_p @session_dir
end
def teardown
@environ.each do |key, val| ENV.delete(key) end
$stdout = STDOUT
- FileUtils.rm_rf(@session_dir)
+ FileUtils.rm_rf(File.dirname(@session_dir))
end
def test_cgi_session_filestore