mirror of
https://github.com/samsonjs/http-cookie.git
synced 2026-03-25 08:55:53 +00:00
Dir.tmpdir should be mktmpdir here.
This commit is contained in:
parent
c389a52e2c
commit
9768154e82
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue