summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-06-26 12:13:53 +0200
committerDaniel Friesel <derf@finalrewind.org>2018-06-26 12:13:53 +0200
commit770f2780491afe8d69f9daf12d60d73f2acf16d2 (patch)
treef4eb04c600f1abbbd512568350623df7194db90e
parent8a3a3d1e723a0e5b803ebf9f122c28d1d1052208 (diff)
App::Dthumb files test: Create and remove t/out as needed
-rwxr-xr-xt/21-app-dthumb.files.t3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/21-app-dthumb.files.t b/t/21-app-dthumb.files.t
index f849ef7..7c91580 100755
--- a/t/21-app-dthumb.files.t
+++ b/t/21-app-dthumb.files.t
@@ -23,6 +23,8 @@ my @indep_files = ('main.css');
my $dthumb = App::Dthumb->new(%conf);
isa_ok($dthumb, 'App::Dthumb');
+mkdir('t/out');
+
for my $file (qw(one.png two.png)) {
$dthumb->create_thumbnail_html($file);
}
@@ -66,6 +68,7 @@ rmdir('t/out/.thumbs');
rmdir('t/out/.dthumb/css');
rmdir('t/out/.dthumb/js');
rmdir('t/out/.dthumb');
+rmdir('t/out');
is_deeply([sort $dthumb->{data}->list_archived()], [sort @created_files],
'create_files: All files created');