/[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 1172 - (hide annotations)
Sun Jul 5 21:40:16 2009 UTC (14 years, 9 months ago) by dpavlin
File MIME type: application/x-troff
File size: 688 byte(s)
branch for localisation

1 dpavlin 103 #!/usr/bin/perl
2     use strict;
3     use warnings;
4    
5 dpavlin 216 use Test::More tests => 10;
6 dpavlin 103 use lib 'lib';
7    
8     BEGIN {
9     use_ok('Frey::Test');
10 dpavlin 131 use_ok('Test::WWW::Mechanize');
11 dpavlin 103 }
12    
13    
14 dpavlin 216 ok( my $url = Frey::Test->start_server, 'start_server' );
15     diag $url;
16 dpavlin 103
17     my $mech = Test::WWW::Mechanize->new;
18 dpavlin 216 $mech->get_ok( $url );
19 dpavlin 103
20     $mech->content_contains("Frey");
21    
22 dpavlin 106 $mech->get_ok( '/ob/Strix::User' );
23 dpavlin 216 $mech->content_contains("results");
24 dpavlin 106
25 dpavlin 121 $mech->get_ok( '/~/Frey::Introspect' );
26     $mech->content_contains("introspect.css");
27    
28     #diag $mech->content;
29    
30 dpavlin 106 #$mech->field( email => 'test@example.com' ); # FIXME we mungle field names
31 dpavlin 103 #$mech->submit;
32    
33 dpavlin 106 #$mech->content_contains('test@example.com');
34    
35 dpavlin 103 ok( Frey::Test->stop_server, 'stop_server' );
36    

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26