X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F96file_column.t;h=f4a166fe9db856abc78cf8dd0b543d16181805d2;hb=6ec7d1bb91a155777ad469cc219bf7442015f825;hp=d81292e1eea1fc35d9dc6d6ad2588e23bcc1686c;hpb=30a93e279a5aefdade7f3b37c75166c4dbcfdad1;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/96file_column.t b/t/96file_column.t index d81292e..f4a166f 100644 --- a/t/96file_column.t +++ b/t/96file_column.t @@ -10,7 +10,7 @@ use Path::Class qw/file/; my $schema = DBICTest->init_schema(); -plan tests => 11; +plan tests => 10; my $rs = $schema->resultset('FileColumn'); my $fname = '96file_column.t'; @@ -66,22 +66,20 @@ $fc->delete; ok ( ! -e $storage, 'storage deleted' ); -TODO: { - local $TODO = 'need resultset delete override to delete_all'; - - $fh = $source_file->openr or die "failed to open $source_file: $!\n"; - $fc = $rs->create({ file => { handle => $fh, filename => $fname } }); +$fh = $source_file->openr or die "failed to open $source_file: $!\n"; +$fc = $rs->create({ file => { handle => $fh, filename => $fname } }); - # read it back - $fc->discard_changes; +# read it back +$fc->discard_changes; - $storage = file( - $fc->column_info('file')->{file_column_path}, - $fc->id, - $fc->file->{filename}, - ); - ok ( -e $storage, 'storage exists (2)' ); +$storage = file( + $fc->column_info('file')->{file_column_path}, + $fc->id, + $fc->file->{filename}, +); +TODO: { + local $TODO = 'need resultset delete override to delete_all'; $rs->delete; ok ( ! -e $storage, 'storage does not exist after $rs->delete' ); };