diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ct_helper.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ct_helper.erl b/src/ct_helper.erl index ef79711..f1e44f8 100644 --- a/src/ct_helper.erl +++ b/src/ct_helper.erl @@ -59,6 +59,7 @@ create_static_dir(Path) -> ok = file:make_dir(Path ++ "/directory"), ok = file:write_file(Path ++ "/unknown", "File with no extension.\n"), ok = file:write_file(Path ++ "/file.cowboy", "File with custom extension.\n"), + ok = file:write_file(Path ++ "/empty.txt", ""), ok = file:write_file(Path ++ "/plain.txt", "Timeless space.\n"), ok = file:write_file(Path ++ "/style.css", "body{color:red}\n"), ok = file:write_file(Path ++ "/index.html", @@ -74,6 +75,7 @@ delete_static_dir(Path) -> ok = file:delete(Path ++ "/index.html"), ok = file:delete(Path ++ "/style.css"), ok = file:delete(Path ++ "/plain.txt"), + ok = file:delete(Path ++ "/empty.txt"), ok = file:delete(Path ++ "/file.cowboy"), ok = file:delete(Path ++ "/unknown"), ok = file:del_dir(Path ++ "/directory"), |