make the missing data handler exception slightly more useful
[catagits/Catalyst-Runtime.git] / t / unicode_plugin_config.t
1 use strict;
2 use warnings;
3 use Test::More;
4
5 BEGIN { $ENV{TESTAPP_ENCODING} = 'UTF-8' };
6
7 # setup library path
8 use FindBin qw($Bin);
9 use lib "$Bin/lib";
10
11 BEGIN {
12 if ( !eval { require Test::WWW::Mechanize::Catalyst; Test::WWW::Mechanize::Catalyst->VERSION('0.51')} ) {
13     plan skip_all => 'Need Test::WWW::Mechanize::Catalyst for this test';
14 }
15 }
16
17 # make sure testapp works
18 use_ok('TestAppUnicode');
19
20 use Test::WWW::Mechanize::Catalyst 'TestAppUnicode';
21 my $mech = Test::WWW::Mechanize::Catalyst->new;
22
23 {
24     TestAppUnicode->encoding('UTF-8');
25     $mech->get_ok('http://localhost/unicode', 'encoding configured ok');
26 }
27
28 done_testing;
29