From 9768154e823a8be8bdd8cfc2ae109fc90f867972 Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Mon, 18 Mar 2013 00:39:55 +0900 Subject: [PATCH] Dir.tmpdir should be mktmpdir here. --- test/test_http_cookie_jar.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test_http_cookie_jar.rb b/test/test_http_cookie_jar.rb index 917a62b..9217340 100644 --- a/test/test_http_cookie_jar.rb +++ b/test/test_http_cookie_jar.rb @@ -1,4 +1,5 @@ require File.expand_path('helper', File.dirname(__FILE__)) +require 'tmpdir' class TestHTTPCookieJar < Test::Unit::TestCase def setup @@ -366,7 +367,7 @@ class TestHTTPCookieJar < Test::Unit::TestCase assert_equal(3, @jar.cookies(url).length) - Dir.tmpdir do |dir| + Dir.mktmpdir do |dir| @jar.save(File.join(dir, "cookies.txt"), :cookiestxt) jar = HTTP::CookieJar.new