From 5bda366e270b73a0350de95aee18d632d0ca19fc Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Tue, 2 Nov 2010 15:41:12 -0700 Subject: [PATCH] Fix leaky assets in the EditBranch asset helper test. --- t/AssetHelper/EditBranch.t | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/t/AssetHelper/EditBranch.t b/t/AssetHelper/EditBranch.t index 555c331ef..1a56f198d 100644 --- a/t/AssetHelper/EditBranch.t +++ b/t/AssetHelper/EditBranch.t @@ -50,7 +50,7 @@ my $grand = $child->addChild({ }); my $tag = WebGUI::VersionTag->getWorking( $session ); $tag->commit; -addToCleanup( $tag ); +WebGUI::Test->addToCleanup( $top, $child, $grand ); { @@ -82,9 +82,9 @@ $top = WebGUI::Asset->newPending( $session, $top->getId ); $child = WebGUI::Asset->newPending( $session, $child->getId ); $grand = WebGUI::Asset->newPending( $session, $grand->getId ); -is( $top->ownerUserId, '3' ); -is( $child->ownerUserId, '3' ); -is( $grand->ownerUserId, '3' ); +is( $top->ownerUserId, '3', 'top changed' ); +is( $child->ownerUserId, '3', 'child changed' ); +is( $grand->ownerUserId, '3', 'child changed' ); done_testing();