1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
use strict;
use warnings;
use FindBin;
use lib "$FindBin::Bin/lib";
use Test::More tests => 12;
use Catalyst::Test 'TestPath';
{
ok( my $response = request('http://localhost/one'), 'Request' );
ok( $response->is_success, '"Path" - Response Successful 2xx' );
is( $response->content, 'OK', '"Path" - Body okay' );
}
{
ok( my $response = request('http://localhost/two'), 'Request' );
ok( $response->is_success, '"Path()" - Response Successful 2xx' );
is( $response->content, 'OK', '"Path()" - Body okay' );
}
{
ok( my $response = request('http://localhost/three'), 'Request' );
ok( $response->is_success, '"Path(\'\')" - Response Successful 2xx' );
is( $response->content, 'OK', '"Path(\'\')" - Body okay' );
}
{
ok( my $response = request('http://localhost/four'), 'Request' );
ok( $response->is_success, '"Path(\'\')" - Response Successful 2xx' );
is( $response->content, 'OK', '"Path() Args()" - Body okay' );
}
|