Debian Codegraph @

share/skel/tutorial/t/002_index_route.t

raw
1 use strict;
2 use warnings;
3
4 use [d2% appname %2d];
5 use Test::More tests => 2;
6 use Plack::Test;
7 use HTTP::Request::Common;
8 use Ref::Util qw<is_coderef>;
9
10 my $app = [d2% appname %2d]->to_app;
11 ok( is_coderef($app), 'Got app' );
12
13 my $test = Plack::Test->create($app);
14 my $res = $test->request( GET '/' );
15
16 ok( $res->is_success, '[GET /] successful' );