summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-05 11:53:02 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-05 11:53:02 +0000
commit4a97761c1a571e9475c782b758e513cfe6a505ae (patch)
treeea08781500776a18fa19105934a8c8d2cb1eacb4
parent27e92c66499384653955de64122dc129da73738f (diff)
add description of test in comment
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--test/fileutils/test_fileutils.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/fileutils/test_fileutils.rb b/test/fileutils/test_fileutils.rb
index af8358bd011..987bc9ae0ce 100644
--- a/test/fileutils/test_fileutils.rb
+++ b/test/fileutils/test_fileutils.rb
@@ -1227,6 +1227,9 @@ class TestFileUtils
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