Added POD and test for RenderThingData macro update

This commit is contained in:
Chris Hanson 2011-06-16 18:07:54 -05:00
parent 995eb34b5a
commit 8a6ba94191
2 changed files with 10 additions and 2 deletions

View file

@ -39,7 +39,7 @@ WebGUI::Test->addToCleanup(sub {
WebGUI::Test->unmockAssetUrl($templateUrl);
});
plan tests => 6;
plan tests => 7;
my $node = WebGUI::Asset->getImportNode($session);
my $versionTag = WebGUI::VersionTag->getWorking($session);
@ -119,3 +119,6 @@ $output = WebGUI::Macro::RenderThingData::process($session, $thing_url, $templat
ok $templateProcessed, '... passed template url, template processed';
$templateProcessed = 0;
$output = WebGUI::Macro::RenderThingData::process($session, $thing_url, $templateUrl, "fakeAssetId");
ok $templateVars->{'callerAssetId'} eq 'fakeAssetId', '... passed callerAssetId, template var was passed';
$templateProcessed = 0;