File: 10providers.encoding.t

package info (click to toggle)
libcatalyst-view-tt-perl 0.34-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 324 kB
  • ctags: 164
  • sloc: perl: 2,324; makefile: 4
file content (20 lines) | stat: -rw-r--r-- 479 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use strict;
use warnings;
use Test::More;

eval "use Template::Provider::Encoding";
if ($@) {
    plan skip_all => 'Template::Provider::Encoding';
} else {
    plan tests => 3;
}

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

use_ok('Catalyst::Test', 'TestApp');

my $response;
ok(($response = request("/test_includepath?view=Encoding&template=test.tt&additionalpath=test_include_path"))->is_success, 'provider request');
cmp_ok($response->content, 'eq', 'hi', 'provider worked');