415f1216a9b2772aee47fad6c18c7c07a729e48f
[catagits/Catalyst-Runtime.git] / t / path_action_empty_brackets.t
1 use strict;
2 use warnings;
3
4 use FindBin;
5 use lib "$FindBin::Bin/lib";
6
7 use Test::More tests => 9;
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 }
26
27