Debian Codegraph @

t/examples/hello_world.t

raw
1 use strict;
2 use warnings;
3
4 use FindBin ();
5
6 use Test::More tests => 3;
7 use Plack::Test;
8 use HTTP::Request::Common qw(GET);
9
10 my $app = do "$FindBin::Bin/../../examples/single/hello_world.psgi";
11 is( ref $app, 'CODE', 'Got app' );
12
13 my $test = Plack::Test->create($app);
14
15 my $res = $test->request( GET '/' );
16 ok( $res->is_success, '[GET /] successful' );
17 is( $res->content, 'Hello World', 'Content looks ok' );
18