From fa2e5c2c9086e34407d39a66574b8a1b885e8a35 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Mon, 13 Apr 2009 16:38:26 +0000 Subject: [PATCH] Add valid storageId checks for duplication, since '' ne storageId. --- t/Asset/Story.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/Asset/Story.t b/t/Asset/Story.t index 069191869..454969a90 100644 --- a/t/Asset/Story.t +++ b/t/Asset/Story.t @@ -346,8 +346,8 @@ ok($viewVariables->{hasPhotos}, 'viewVariables: hasPhotos: it has photos'); ############################################################ $photoData = $story->getPhotoData; -$photoData->[0]->{storageId} = ignore(); -$photoData->[1]->{storageId} = ignore(); +$photoData->[0]->{storageId} = re('^[A-Za-z0-9_-]{22}$'); +$photoData->[1]->{storageId} = re('^[A-Za-z0-9_-]{22}$'); my $newPhotoData = $story->duplicatePhotoData; cmp_deeply(