/[Frey]/branches/zimbardo/t/90-frey-server.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/90-frey-server.t

Parent Directory Parent Directory | Revision Log Revision Log


Revision 121 - (hide annotations)
Mon Jul 14 21:22:43 2008 UTC (15 years, 9 months ago) by dpavlin
Original Path: trunk/t/90-frey-server.t
File MIME type: application/x-troff
File size: 825 byte(s)
central page creation [0.11]

- make (optional) development feature in Makefile.PL
- split page generation in Frey::Web->page
- cleanup of html generation code all over
- jump to Carp::REPL on errors (nice, but needs to be in browser)

This is a move to more embedded html. While it does seem evil, we are aming
here at lean framework, so readability is prefered...
1 dpavlin 103 #!/usr/bin/perl
2     use strict;
3     use warnings;
4    
5 dpavlin 121 use Test::More tests => 10;
6 dpavlin 103 use lib 'lib';
7    
8     BEGIN {
9     use_ok('Frey::Test');
10     }
11    
12     eval "use Test::WWW::Mechanize";
13     if($@) {
14     plan skip_all => 'Test::WWW::Mechanize not installed';
15     exit;
16     }
17    
18     ok( my $kid_out = Frey::Test->start_server, 'start_server' );
19     ok( my $server = Frey::Test->get_server( $kid_out ), 'get_server' );
20    
21     my $mech = Test::WWW::Mechanize->new;
22     $mech->get_ok( $server );
23    
24     $mech->content_contains("Frey");
25    
26 dpavlin 106 $mech->get_ok( '/ob/Strix::User' );
27     $mech->content_contains("Email");
28    
29 dpavlin 121 $mech->get_ok( '/~/Frey::Introspect' );
30     $mech->content_contains("introspect.css");
31    
32     #diag $mech->content;
33    
34 dpavlin 106 #$mech->field( email => 'test@example.com' ); # FIXME we mungle field names
35 dpavlin 103 #$mech->submit;
36    
37 dpavlin 106 #$mech->content_contains('test@example.com');
38    
39 dpavlin 103 ok( Frey::Test->stop_server, 'stop_server' );
40    

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26