summaryrefslogtreecommitdiff
path: root/test/cgi/test_cgi_session.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-08 06:49:59 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-08 06:49:59 +0000
commita0d2cd2e1eee9765b14506360d51d6b1e2f23b58 (patch)
tree61aea62ba0689a068ffd60e184b0777af49401cc /test/cgi/test_cgi_session.rb
parent965121cdc5675d6d6f3ed356210eb447e87f7b4d (diff)
test: why believe source directories are writable always?
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/cgi/test_cgi_session.rb')
-rw-r--r--test/cgi/test_cgi_session.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/cgi/test_cgi_session.rb b/test/cgi/test_cgi_session.rb
index f3b8e60865e..7fa7ad7acd9 100644
--- a/test/cgi/test_cgi_session.rb
+++ b/test/cgi/test_cgi_session.rb
@@ -7,8 +7,7 @@ require 'tmpdir'
class CGISessionTest < Test::Unit::TestCase
def setup
- @session_dir = File.join(File.dirname(__FILE__), 'session_dir')
- FileUtils.mkdir_p @session_dir
+ @session_dir = Dir.mktmpdir(%w'session dir')
end
def teardown