fix a typo in the AssetMetaData, and add code to WebGUI::Test to force all output onto STDOUT. Step 1 to smolder

This commit is contained in:
Colin Kuskie 2007-06-06 23:40:14 +00:00
parent 1718410c10
commit efea7c9685
2 changed files with 8 additions and 1 deletions

View file

@ -71,7 +71,7 @@ $folder->addMetaDataField('new', 'color', '', 'Favorite Color', 'radioList', "Bl
@snipKeys = keys %{ $snippet->getMetaDataFields };
@foldKeys = keys %{ $folder->getMetaDataFields };
is(scalar @foldKeys, 2, 'Two meta data field available');
is(scalar @foldKeys, 2, 'Two meta data fields available');
cmp_deeply( \@snipKeys, \@foldKeys, 'Snippet and Folder have access to the same meta data fields');
END {

View file

@ -10,6 +10,13 @@ use IO::Handle qw[];
use File::Spec qw[];
use Test::MockObject::Extends;
##Hack to get ALL test output onto STDOUT.
use Test::Builder;
sub import {
no warnings;
*Test::Builder::failure_output = sub { return \*STDOUT };
}
our $logger_warns;
our $logger_debug;
our $logger_info;