5 use lib "$FindBin::Bin/lib";
7 use Test::More tests => 12;
8 use Catalyst::Test 'TestPath';
12 ok( my $response = request('http://localhost/one'), 'Request' );
13 ok( $response->is_success, '"Path" - Response Successful 2xx' );
14 is( $response->content, 'OK', '"Path" - Body okay' );
17 ok( my $response = request('http://localhost/two'), 'Request' );
18 ok( $response->is_success, '"Path()" - Response Successful 2xx' );
19 is( $response->content, 'OK', '"Path()" - Body okay' );
22 ok( my $response = request('http://localhost/three'), 'Request' );
23 ok( $response->is_success, '"Path(\'\')" - Response Successful 2xx' );
24 is( $response->content, 'OK', '"Path(\'\')" - Body okay' );
27 ok( my $response = request('http://localhost/four'), 'Request' );
28 ok( $response->is_success, '"Path(\'\')" - Response Successful 2xx' );
29 is( $response->content, 'OK', '"Path() Args()" - Body okay' );