Debug needs an explicit package name for addToCleanup.

This commit is contained in:
Colin Kuskie 2011-10-19 13:11:23 -07:00
parent 19b6f9de12
commit 82bb59d40e
47 changed files with 99 additions and 99 deletions

View file

@ -85,7 +85,7 @@ my $helper = WebGUI::AssetHelper::Product::ExportCSV->new(
);
my $exportProducts = \&WebGUI::AssetHelper::Product::ExportCSV::exportProducts;
my $process = Test::MockObject::Extends->new( WebGUI::Fork->create( $session ) );
addToCleanup( sub { $process->delete } );
WebGUI::Test->addToCleanup( sub { $process->delete } );
$exportProducts->($process, {});
# Determine the storage location from the URL