From 5a11540e1c16f1f6abcb3b5eb935bf4d527e5380 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Wed, 19 Oct 2011 13:21:03 -0700 Subject: [PATCH] Update test for new testing API for assethelpers. --- t/AssetHelper/Product/ImportCSV.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/AssetHelper/Product/ImportCSV.t b/t/AssetHelper/Product/ImportCSV.t index f734c1084..771e4b3b1 100644 --- a/t/AssetHelper/Product/ImportCSV.t +++ b/t/AssetHelper/Product/ImportCSV.t @@ -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');