[前][次][番号順一覧][スレッド一覧]

ruby-changes:36825

From: akr <ko1@a...>
Date: Sat, 20 Dec 2014 17:58:39 +0900 (JST)
Subject: [ruby-changes:36825] akr:r48906 (trunk): Add a test for Dir.mktmpdir(nil) [Bug #10616].

akr	2014-12-20 17:58:30 +0900 (Sat, 20 Dec 2014)

  New Revision: 48906

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48906

  Log:
    Add a test for Dir.mktmpdir(nil) [ruby-core:66943] [Bug #10616].

  Modified files:
    trunk/test/test_tmpdir.rb
Index: test/test_tmpdir.rb
===================================================================
--- test/test_tmpdir.rb	(revision 48905)
+++ test/test_tmpdir.rb	(revision 48906)
@@ -30,4 +30,10 @@ class TestTmpdir < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/test_tmpdir.rb#L30
     ENV["HOME"] = home
     Dir.rmdir(dir) if dir
   end
+
+  def test_mktmpdir_nil
+    Dir.mktmpdir(nil) {|d|
+      assert_kind_of(String, d)
+    }
+  end
 end

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]