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

ruby-changes:29037

From: kazu <ko1@a...>
Date: Wed, 5 Jun 2013 20:53:17 +0900 (JST)
Subject: [ruby-changes:29037] kazu:r41089 (trunk): add description of test in comment

kazu	2013-06-05 20:53:02 +0900 (Wed, 05 Jun 2013)

  New Revision: 41089

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

  Log:
    add description of test in comment

  Modified files:
    trunk/test/fileutils/test_fileutils.rb

Index: test/fileutils/test_fileutils.rb
===================================================================
--- test/fileutils/test_fileutils.rb	(revision 41088)
+++ test/fileutils/test_fileutils.rb	(revision 41089)
@@ -1227,6 +1227,9 @@ class TestFileUtils https://github.com/ruby/ruby/blob/trunk/test/fileutils/test_fileutils.rb#L1227
       Dir.rmdir '/'
     rescue => e
       assert_raise(e.class) {
+        # Dir.rmdir('') raises Errno::ENOENT.
+        # FileUtils#rmdir ignores it.
+        # And this test failed as expected.
         rmdir '/'
       }
     end

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

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