File: auto-last-modified.t

package info (click to toggle)
libcgi-application-plugin-tt-perl 1.05-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 364 kB
  • ctags: 82
  • sloc: perl: 647; sh: 28; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 337 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use strict;
use warnings;
use Test::More tests => 2;
use lib 't/lib';
BEGIN {
    use_ok( 'TestApp::AutoLastModified' );
};

# set up CGI:App for testing
$ENV{CGI_APP_RETURN_ONLY} = 1;

# run our test
my $app = TestApp::AutoLastModified->new();
my $res = $app->run();
like( $res, qr/^Last-Modified:/mi, 'Last-Modified header present' );