summaryrefslogtreecommitdiff
path: root/test/cgi/test_cgi_session.rb
diff options
context:
space:
mode:
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 6cccb22240..50e0f4af4d 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 = File.join(Dir.mktmpdir('__test_dir__'), 'session_dir')
+ @session_dir = File.join(File.dirname(__FILE__), 'session_dir')
FileUtils.mkdir_p @session_dir
end
def teardown
@environ.each do |key, val| ENV.delete(key) end
$stdout = STDOUT
- FileUtils.rm_rf(File.dirname(@session_dir))
+ FileUtils.rm_rf(@session_dir)
end
def test_cgi_session_filestore