diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-03-13 13:55:12 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-03-13 13:55:12 +0100 |
commit | 79ff1f886b48e6b43ddd0ad3e3c6155e5826c4c5 (patch) | |
tree | 981423c22be47e79035655158db47c2631df362b /t/20-app-dthumb.t | |
parent | 4947c1961eefa26e41314c61a74d361c2593996e (diff) |
Add App::Dthumb tests for create_files, create_thumbnail_html and write_out_html
Diffstat (limited to 't/20-app-dthumb.t')
-rwxr-xr-x | t/20-app-dthumb.t | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/t/20-app-dthumb.t b/t/20-app-dthumb.t index 18923be..5f3479d 100755 --- a/t/20-app-dthumb.t +++ b/t/20-app-dthumb.t @@ -4,7 +4,7 @@ use warnings; use 5.010; use autodie; -use Test::More tests => 18; +use Test::More tests => 17; use_ok('App::Dthumb'); @@ -33,15 +33,11 @@ is($dthumb->{config}->{lightbox}, 0, 'Lightbox disabled'); $dthumb = App::Dthumb->new('no-names' => 1); is($dthumb->{config}->{names}, 0, 'Image names disabled'); +is($dthumb->version(), $App::Dthumb::VERSION, '$dthumb->version()'); + $dthumb = App::Dthumb->new(); @{$dthumb->{files}} = qw(a.png b.png c.png d.jpg); @{$dthumb->{old_thumbnails}} = 'e.png'; is_deeply($dthumb->{files}, [$dthumb->get_files()], '$dthumb->get_files()'); - -$dthumb = App::Dthumb->new(dir_images => 't/imgdir'); -$dthumb->read_directories(); - -is_deeply($dthumb->{old_thumbnails}, ['invalid.png'], '{old_thumbnails}'); -is_deeply($dthumb->{files}, ['one.png', 'two.png'], '{files}'); |