File: path_action_empty_brackets.t

package info (click to toggle)
libcatalyst-perl 5.90132-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,016 kB
  • sloc: perl: 11,061; makefile: 7
file content (30 lines) | stat: -rw-r--r-- 965 bytes parent folder | download | duplicates (4)
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' );
}