/[Frey]/trunk/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

Contents of /trunk/t/90-frey-server.t

Parent Directory Parent Directory | Revision Log Revision Log


Revision 103 - (show annotations)
Fri Jul 11 23:08:25 2008 UTC (15 years, 9 months ago) by dpavlin
File MIME type: application/x-troff
File size: 678 byte(s)
minimal server testing

Ability to run server on different port by specifiny port on command line of
using FREY_PORT enviroment variable
1 #!/usr/bin/perl
2 use strict;
3 use warnings;
4
5 use Test::More tests => 6;
6 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 #$mech->field( name => $name );
27 #$mech->field( favorite => $thing1, 1 );
28 #$mech->field( favorite => $thing2, 2 );
29 #$mech->field( favorite => $thing3, 3 );
30 #$mech->submit;
31
32 ok( Frey::Test->stop_server, 'stop_server' );
33

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26