Update test for exception handling.

This commit is contained in:
Colin Kuskie 2010-03-03 11:10:16 -08:00
parent 0a0b6557e2
commit 44c6048da4

View file

@ -375,8 +375,8 @@ SKIP: {
$shelf->purge;
undef $shelf;
$record = WebGUI::Asset::Sku->newBySku($session, 'classical-records-1');
is($record, undef, 'deleting a shelf deletes all products beneath it');
$record = eval { WebGUI::Asset::Sku->newBySku($session, 'classical-records-1'); };
ok(Exception::Class->caught(), 'deleting a shelf deletes all products beneath it');
#######################################################################
#