diff --git a/test/modules/post/test/file.rb b/test/modules/post/test/file.rb index db6cf38b96590..b0ec7a02791b6 100644 --- a/test/modules/post/test/file.rb +++ b/test/modules/post/test/file.rb @@ -67,6 +67,13 @@ def test_dir ret end + it 'should create intermediary directories' do + nested_path = [datastore['BaseDirectoryName'], 'parent', 'child'].join(fs_sep) + mkdir(nested_path) + + directory?(nested_path) + end + it 'should list the directory we just made' do dents = dir(datastore['BaseDirectoryName']) dents.include?('file') && dents.include?('directory')