mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test_fileutils.rb: parents option
* test/fileutils/test_fileutils.rb (TestFileUtils#test_rmdir): add assertions for parents option. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b4bafcb416
commit
d479419ad3
1 changed files with 8 additions and 0 deletions
|
@ -1233,6 +1233,14 @@ class TestFileUtils
|
|||
rmdir '/'
|
||||
}
|
||||
end
|
||||
|
||||
subdir = 'data/sub/dir'
|
||||
mkdir_p(subdir)
|
||||
assert_nothing_raised(Errno::ENOENT) {
|
||||
rmdir(subdir, parents: true)
|
||||
}
|
||||
assert_file_not_exist('data/sub')
|
||||
assert_directory('data')
|
||||
end
|
||||
|
||||
def test_rmtree
|
||||
|
|
Loading…
Add table
Reference in a new issue