Debian Codegraph @

t/plugin2/app_dsl_cb/app_dsl_cb.t

raw
1 use strict;
2 use warnings;
3 use lib 't/plugin2/app_dsl_cb/lib';
4 use Test::More 'tests' => 4;
5 use Plack::Test;
6 use HTTP::Request::Common 'GET';
7 use App with => { show_errors => 1 };
8 use Test::Fatal 'exception';
9
10 my $app = App->to_app;
11 my $test = Plack::Test->create($app);
12
13 my $res;
14 is(
15 exception { $res = $test->request( GET '/' ) },
16 undef,
17 'Did not crash',
18 );
19
20 is( $res->content, 'GET DONE', 'Ran successfully' );