Skip to content

Commit

Permalink
Fix another leaky test.
Browse files Browse the repository at this point in the history
  • Loading branch information
perlDreamer committed Nov 4, 2011
1 parent dc489b2 commit 8a92be9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions t/Macro/LastUpdatedBy.t
Expand Up @@ -16,6 +16,7 @@ use WebGUI::Test;
use WebGUI::Session;
use WebGUI::User;
use WebGUI::Macro::LastUpdatedBy;
use WebGUI::VersionTag;

use Test::More; # increment this value for each test you create

Expand Down Expand Up @@ -51,9 +52,12 @@ my %properties_A = (
# '1234567890123456789012',
);

my $tag = WebGUI::VersionTag->getWorking($session);
my $assetA = $root->addChild(\%properties_A, $properties_A{id});

$session->asset($assetA);
$tag->commit;
WebGUI::Test->addToCleanup($tag);

$output = WebGUI::Macro::LastUpdatedBy::process($session);
is($output, 'Andy', 'Default asset last revised by andy');
Expand Down

0 comments on commit 8a92be9

Please sign in to comment.