Fix Dir.mktmpdir argument

The temporary directory is the second argument.
This commit is contained in:
Nobuyoshi Nakada 2024-11-04 20:25:57 +09:00
parent 1e037108a1
commit 4dc120cb7f
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

View File

@ -366,7 +366,7 @@ class TestRubyOptions < Test::Unit::TestCase
assert_equal([], e)
end
Dir.mktmpdir(d) do |base|
Dir.mktmpdir(nil, d) do |base|
# "test" in Japanese and N'Ko
test = base + "/\u{30c6 30b9 30c8}_\u{7e1 7ca 7dd 7cc 7df 7cd 7eb}"
Dir.mkdir(test)