Update test for new testing API for assethelpers.

This commit is contained in:
Colin Kuskie 2011-10-19 13:21:03 -07:00
parent 82bb59d40e
commit 5a11540e1c

View file

@ -83,7 +83,7 @@ SKIP: {
chmod oct(0000), $productsTempFile;
eval { $shelf->importProducts($process, { assetId => $helper->asset->getId, filePath => $productsTempFile } ); };
eval { $importProducts->($process, { assetId => $helper->asset->getId, filePath => $productsTempFile } ); };
$e = Exception::Class->caught();
isa_ok($e, 'WebGUI::Error::InvalidFile', 'importProducts: error handling for file that cannot be read') || skip 'invalid error thrown', 2;
is($e->error, 'File is not readable', 'importProducts: error handling for file that that cannot be read');