Talk Display is Blocked in Tests

[prev] [thread] [next] [lurker] [Date index for 2003/12/19]

From: Shlomi Fish
Subject: Talk Display is Blocked in Tests
Date: 15:54 on 19 Dec 2003
Hi!

I'm trying to write a test to check if long lines of a talk are wrapped. Here 
it is:

<<<
{
    YAPC::Test::Data::submit_talk(3, $cookies[0]);
    my @talks = YAPC::Talk->retrieve_all;
    local $ENV{PATH_INFO} = '/talk.html';
    my %params = ('id' => $talks[0]->id);
    my $q = CGI->new(\%params);
    my $webapp = YAPC::Organizer->new;
    $webapp->query($q);
    my $result = $webapp->run();
    unlike($result, qr/<pre>.*[^\n]{80}.*<\/pre>/s, "Make sure there are no 
long lines");
}
>>>

The problem is that I get an "Access to administrators only" notice and so it 
breaks the test. How can I make sure the test will still run?

Regards,

	Shlomi Fish
-- 

---------------------------------------------------------------------
Shlomi Fish      shlomif@xxxx.xxx.xx
Homepage: http://t2.technion.ac.il/~shlomif/

I don't believe in fairies. Oops! A fairy died.
I don't believe in fairies. Oops! Another fairy died.

Generated at 17:35 on 06 Jun 2004 by mariachi 0.52