/[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 106 - (hide annotations)
Sun Jul 13 12:22:14 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: 717 byte(s)
added Frey::Collection role to database models
1 dpavlin 103 #!/usr/bin/perl
2     use strict;
3     use warnings;
4    
5 dpavlin 106 use Test::More tests => 8;
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     #$mech->field( email => 'test@example.com' ); # FIXME we mungle field names
30 dpavlin 103 #$mech->submit;
31    
32 dpavlin 106 #$mech->content_contains('test@example.com');
33    
34 dpavlin 103 ok( Frey::Test->stop_server, 'stop_server' );
35    

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26