From a1a881bde53bc5eddcd7be4c52a9ce8053ca9c53 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 28 Dec 2016 15:56:23 +0100 Subject: code cleanup --- t/20-app-dthumb.t | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 't') diff --git a/t/20-app-dthumb.t b/t/20-app-dthumb.t index 37e72a0..9be60de 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 => 16; +use Test::More tests => 14; use_ok('App::Dthumb'); @@ -20,16 +20,12 @@ is($dthumb->{config}->{dir_thumbs}, './.thumbs', 'Thumbnail directory is dthumbs'); is($dthumb->{config}->{file_index}, 'index.html', 'index is index.html'); -is($dthumb->{config}->{lightbox}, 1, 'Lightbox enabled'); is($dthumb->{config}->{names} , 1, 'Show image names'); is($dthumb->{config}->{quality} , 75, 'Default quality'); is($dthumb->{config}->{recreate}, 0, 'Do not recreate'); is($dthumb->{config}->{size} , 200, 'Default size'); is($dthumb->{config}->{spacing} , 1.1, 'Default spacing'); -$dthumb = App::Dthumb->new('no-lightbox' => 1); -is($dthumb->{config}->{lightbox}, 0, 'Lightbox disabled'); - $dthumb = App::Dthumb->new('no-names' => 1); is($dthumb->{config}->{names}, 0, 'Image names disabled'); -- cgit v1.2.3