File: psgi-wrap.t

package info (click to toggle)
request-tracker5 5.0.7%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 80,216 kB
  • sloc: javascript: 191,898; perl: 87,146; sh: 1,412; makefile: 487; python: 37; php: 15
file content (14 lines) | stat: -rw-r--r-- 331 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use strict;
use warnings;

use RT::Test
    tests   => undef,
    plugins => [qw(RT::Extension::PSGIWrap)];

my ($base, $m) = RT::Test->started_ok;
$m->login;
ok(my $res = $m->get("/"));
is($res->code, 200, 'Successful request to /');
ok($res->header('X-RT-PSGIWrap'), 'X-RT-PSGIWrap header set from the plugin');

done_testing();