File: 09ignore_ext.t

package info (click to toggle)
libcatalyst-plugin-static-simple-perl 0.36-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 384 kB
  • sloc: perl: 2,629; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 462 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
#!perl

use strict;
use warnings;

use FindBin;
use lib "$FindBin::Bin/lib";

use Test::More tests => 4;
use Catalyst::Test 'TestApp';

# test ignoring extensions
# default is tt/html/xhtml

ok( my $res = request('http://localhost/ignored/tmpl.tt'), 'request ok' );
is( $res->content, 'default', 'ignored extension tt ok' );

ok( $res = request('http://localhost/ignored/index.html'), 'request ok' );
is( $res->content, 'default', 'ignored extension html ok' );