summaryrefslogtreecommitdiff
path: root/test/test_tmpdir.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-20 08:58:30 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-20 08:58:30 +0000
commitfa9f7c25574dff38327a3ba08cd74c76eb303c59 (patch)
tree55be5b562c0f900458756205970d1f9e4c87e232 /test/test_tmpdir.rb
parent8b5c7d939d3e22b2728ca9f59c3ac3376b88618a (diff)
Add a test for Dir.mktmpdir(nil) [ruby-core:66943] [Bug #10616].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/test_tmpdir.rb')
-rw-r--r--test/test_tmpdir.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_tmpdir.rb b/test/test_tmpdir.rb
index 3bdce35..62b4abf 100644
--- a/test/test_tmpdir.rb
+++ b/test/test_tmpdir.rb
@@ -30,4 +30,10 @@ class TestTmpdir < Test::Unit::TestCase
ENV["HOME"] = home
Dir.rmdir(dir) if dir
end
+
+ def test_mktmpdir_nil
+ Dir.mktmpdir(nil) {|d|
+ assert_kind_of(String, d)
+ }
+ end
end