File: encoding_set_in_config.t

package info (click to toggle)
libcatalyst-perl 5.90124-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,992 kB
  • sloc: perl: 11,123; makefile: 7
file content (18 lines) | stat: -rw-r--r-- 446 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use strict;
use warnings;

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

use Test::More;

BEGIN { eval { require Catalyst::Plugin::ConfigLoader; 1; } ||
    plan skip_all => 'Need Catalyst::Plugin::ConfigLoader' }

#for this test encoding => 'UTF-8' is set in testappencodingsetinconfig.json
use Catalyst::Test 'TestAppEncodingSetInConfig';

my ( undef, $c ) = ctx_request('/');
isa_ok( $c->encoding,  'Encode::utf8', '$c->encoding' );

done_testing;