2 use warnings FATAL => 'all';
6 use Data::Perl::Collection::Set;
8 BEGIN { $INC{"App/IdiotBox/Store/Test.pm"} = __FILE__ }
10 sub App::IdiotBox::Store::Test::bind {}
12 my $idiotbox = App::IdiotBox->new({
19 my ($lpw, $opw) = map bless($_, 'App::IdiotBox::Bucket'),
21 name => 'London Perl Workshop 2009',
24 name => 'Perl Oasis 2010',
26 my @ann = map bless($_, 'App::IdiotBox::Announcement'),
28 made_at => '2010-01-21 01:00:00',
32 made_at => '2010-01-01 14:00:00',
35 Data::Perl::Collection::Set->new(members => [ @ann ]);
38 $idiotbox->{recent_announcements} = $ann;
44 my $front = $idiotbox->show_front_page;
48 my $fh = $front->[-1];
49 while (defined (my $chunk = $fh->getline)) {
63 #HTML::Zoom->from_string($html)
65 # '.announcement' => [