| 90 | end |
| 91 | |
| 92 | def test_delete_dir |
| 93 | mkpath("AB/CD/EF") |
| 94 | mkpath("AB/GH/IJ") |
| 95 | create_file("AB/abc") |
| 96 | create_file("AB/CD/def") |
| 97 | create_file("AB/CD/EF/ghi") |
| 98 | |
| 99 | @fs.delete_dir("AB/CD") |
| 100 | @fs.delete_dir("AB/GH/IJ") |
| 101 | |
| 102 | assert_equal({ |
| 103 | "AB" => :dir, |
| 104 | "AB/GH" => :dir, |
| 105 | "AB/abc" => :file |
| 106 | }, |
| 107 | all_entries) |
| 108 | end |
| 109 | |
| 110 | def test_delete_dir_contents |
| 111 | mkpath("AB/CD/EF") |
nothing calls this directly
no test coverage detected