/[Frey]/branches/zimbardo/t/01-frey-mirror.t
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /branches/zimbardo/t/01-frey-mirror.t

Parent Directory Parent Directory | Revision Log Revision Log


Revision 532 - (hide annotations)
Wed Nov 26 07:57:12 2008 UTC (15 years, 5 months ago) by dpavlin
Original Path: trunk/t/01-frey-mirror.t
File MIME type: application/x-troff
File size: 417 byte(s)
refactor Frey::Boostrap from Frey::Server to have correct warn handling

- we now use File::Tee to capture STDERR to file and display that
  (with filtering) for display
- added FREY_NO_LOG enviroment variable to disable logging (for perl -c)
- move all warnings handling into Frey::Web->warnings_html
- make Frey->debug Int (this touched a bunch of tests)
1 dpavlin 303 #!/usr/bin/perl
2     use strict;
3     use warnings;
4    
5     use Test::More tests => 4;
6     use lib 'lib';
7    
8     use Data::Dump qw/dump/;
9    
10 dpavlin 532 my $debug = @ARGV ? 1 : 0;
11 dpavlin 303
12     BEGIN {
13     use_ok('Frey::Mirror');
14     }
15    
16     ok( my $o = Frey::Mirror->new( uri => 'https://blog.rot13.org/index.xml', debug => $debug ), 'new' );
17     diag $o->dump(2) if $debug;
18    
19     ok( my $content = $o->content, 'content' );
20     diag $content if $debug;
21     like( $content, qr/rot13.org/, 'like' );
22    

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26