summaryrefslogtreecommitdiff
path: root/test/fileutils
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-13 13:12:35 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-13 13:12:35 +0000
commit4b5267018abbc600b63784c7d163af2ef8d24429 (patch)
tree4aa1e6a702babfae6ea38c9e2a53084975923da5 /test/fileutils
parentd479419ad30afaf3c13ca3a895f9779858f4587c (diff)
fileutils.rb: fix traversal loop
* lib/fileutils.rb (FileUtils#rmdir): fix traversal loop, not trying remove same directory only. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/fileutils')
-rw-r--r--test/fileutils/test_fileutils.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/fileutils/test_fileutils.rb b/test/fileutils/test_fileutils.rb
index 4ad959a..1317a5b 100644
--- a/test/fileutils/test_fileutils.rb
+++ b/test/fileutils/test_fileutils.rb
@@ -1239,6 +1239,7 @@ class TestFileUtils
assert_nothing_raised(Errno::ENOENT) {
rmdir(subdir, parents: true)
}
+ assert_file_not_exist(subdir)
assert_file_not_exist('data/sub')
assert_directory('data')
end