Commit | Line | Data |
dd6a9f23 |
1 | use strict; |
2 | use warnings; |
3 | |
4 | use FindBin; |
5 | use lib "$FindBin::Bin/lib"; |
6 | |
43b44b3a |
7 | use Test::More tests => 12; |
dd6a9f23 |
8 | use Catalyst::Test 'TestPath'; |
9 | |
10 | |
11 | { |
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' ); |
15 | } |
16 | { |
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' ); |
20 | } |
21 | { |
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' ); |
25 | } |
43b44b3a |
26 | { |
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' ); |
30 | } |