From 910a0a09dd1a80bb526a78fc3ccad9a229bf10ef Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Fri, 4 Jun 2010 13:48:04 -0700 Subject: [PATCH] Upgrade this test for Definition. Something bad is still happening in export. --- t/AssetAspect/RssFeed.t | 14 +------------- t/lib/WebGUI/Asset/RssAspectDummy.pm | 13 +++++++++---- 2 files changed, 10 insertions(+), 17 deletions(-) diff --git a/t/AssetAspect/RssFeed.t b/t/AssetAspect/RssFeed.t index 466372e96..43c6f9088 100644 --- a/t/AssetAspect/RssFeed.t +++ b/t/AssetAspect/RssFeed.t @@ -48,6 +48,7 @@ my $dummy = WebGUI::Asset->getDefault($session)->addChild({ synopsis => 'Dummy Synopsis', description => 'Dummy Description', }); +WebGUI::Test->addToCleanup($dummy); ##################################################### # @@ -185,17 +186,4 @@ cmp_bag( 'exportAssetCollateral: feed files exported, shawshank.html file' ); -##################################################### -# -# exportAssetCollateral -# -##################################################### - -#---------------------------------------------------------------------------- -# Cleanup -END { - $dummy->purge; - my $tag = WebGUI::VersionTag->getWorking($session, 'noCreate'); - $tag->rollback if $tag; -} #vim:ft=perl diff --git a/t/lib/WebGUI/Asset/RssAspectDummy.pm b/t/lib/WebGUI/Asset/RssAspectDummy.pm index dc685b211..aa30036f0 100644 --- a/t/lib/WebGUI/Asset/RssAspectDummy.pm +++ b/t/lib/WebGUI/Asset/RssAspectDummy.pm @@ -15,9 +15,14 @@ package WebGUI::Asset::RssAspectDummy; =cut use strict; -use Tie::IxHash; -use Class::C3; -use base qw/WebGUI::AssetAspect::RssFeed WebGUI::Asset/; +use Moose; +use WebGUI::Definition::Asset; +extends 'WebGUI::Asset'; + +define assetName => 'RssAspectDummy'; +define icon => 'asset.gif'; + +with 'WebGUI::Role::Asset::RssFeed'; =head1 NAME @@ -25,7 +30,7 @@ Package WebGUI::Asset::RssAspectDummy =head1 DESCRIPTION -A dummy module for testing the RssAspect. The module really doesn't +A dummy module for testing the Rss Role. The module really doesn't do anything, except provide suport modules for testing. The module inherits directly from WebGUI::Asset.