take advantage of getTestCollateralPath concatenating files to the path for you

This commit is contained in:
Colin Kuskie 2008-02-09 04:25:07 +00:00
parent 227be31be5
commit b4483947cf

View file

@ -377,7 +377,7 @@ is($fileStore->addFileFromFormPost('files'), undef, 'addFileFromFormPost returns
$session->request->uploadFiles(
'oneFile',
[ File::Spec->catfile( WebGUI::Test->getTestCollateralPath, qw/WebGUI.pm/) ],
[ WebGUI::Test->getTestCollateralPath('WebGUI.pm') ],
);
is($fileStore->addFileFromFormPost('oneFile'), 'WebGUI.pm', 'Return the name of the uploaded file');