From a8dab0ac03ee3936ac27aefe5f054fbd35ef93ec Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Tue, 10 Feb 2009 21:41:48 +0000 Subject: [PATCH] fix exif test --- t/Asset/File/GalleryFile/Photo/exif.t | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/t/Asset/File/GalleryFile/Photo/exif.t b/t/Asset/File/GalleryFile/Photo/exif.t index c523a089a..eac7deafd 100644 --- a/t/Asset/File/GalleryFile/Photo/exif.t +++ b/t/Asset/File/GalleryFile/Photo/exif.t @@ -46,7 +46,10 @@ my $photo { skipAutoCommitWorkflows => 1 }, ); $versionTag->commit; -my $exif = ImageInfo( WebGUI::Test->getTestCollateralPath("lamp.jpg") ); + +$photo->setFile( WebGUI::Test->getTestCollateralPath("lamp.jpg") ); + +my $exif = ImageInfo( $photo->getStorageLocation->getPath($photo->get('filename')) ); # Sanitize Exif data by removing keys with references as values for my $key ( keys %$exif ) { if ( ref $exif->{$key} ) { @@ -58,7 +61,6 @@ for my $key ( qw{ Directory } ) { delete $exif->{ $key }; } -$photo->setFile( WebGUI::Test->getTestCollateralPath("lamp.jpg") ); #---------------------------------------------------------------------------- # Cleanup