Skip to content

Commit

Permalink
fix skip_all in packed test
Browse files Browse the repository at this point in the history
  • Loading branch information
Doug Bell committed Oct 2, 2009
1 parent 8eaaecf commit bf4c5eb
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions t/Asset/Template/packed.t
Expand Up @@ -25,7 +25,9 @@ use CSS::Packer;
use JavaScript::Packer;
use WebGUI::Asset::Template;

skip_all("Set CODE_COP to enable these tests") unless $ENV{CODE_COP};
if ( !$ENV{CODE_COP} ) {
plan skip_all => "Set CODE_COP to enable these tests";
}

#----------------------------------------------------------------------------
# Init
Expand All @@ -34,6 +36,7 @@ my $templates = WebGUI::Asset->getRoot( $session )
->getLineage( ['descendants'], {
includeOnlyClasses => [ 'WebGUI::Asset::Template' ],
} );
WebGUI::Test->tagsToRollback( WebGUI::VersionTag->getWorking( $session ) );

#----------------------------------------------------------------------------
# Tests
Expand Down Expand Up @@ -68,9 +71,4 @@ for my $templateId ( @$templates ) {
}


#----------------------------------------------------------------------------
# Cleanup
END {
WebGUI::VersionTag->getWorking( $session )->rollback;
}
#vim:ft=perl

0 comments on commit bf4c5eb

Please sign in to comment.