| 1 | package Jifty::TestServer::Inline; | ||
| 2 | use Any::Moose; | ||
| 3 | extends 'Jifty::TestServer'; | ||
| 4 | use Test::More; | ||
| 5 | |||
| 6 | =head1 NAME | ||
| 7 | |||
| 8 | Jifty::TestServer::Inline - an inline server for running tests | ||
| 9 | |||
| 10 | =head1 METHODS | ||
| 11 | |||
| 12 | =head2 started_ok | ||
| 13 | |||
| 14 | Returns the URI for the test server. | ||
| 15 | |||
| 16 | =cut | ||
| 17 | |||
| 18 | sub started_ok { | ||
| 19 | my $self = shift; | ||
| 20 | my $port = $self->port; | ||
| 21 | ok(1, "psgi test server ok"); | ||
| 22 | return "http://localhost:$port"; | ||
| 23 | } | ||
| 24 | |||
| 25 | __PACKAGE__->meta->make_immutable; | ||
| 26 | no Any::Moose; | ||
| 27 | 1; |